Skip to content

Commit

Permalink
Corrected utilities.py (#44)
Browse files Browse the repository at this point in the history
In order to have the right model for pretrain.
  • Loading branch information
chufangao authored Feb 13, 2021
1 parent e88c885 commit 53163b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsm/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def pretrain_dsm(model, t_train, e_train, t_valid, e_valid,
risks=model.risks)
premodel.double()

optimizer = get_optimizer(model, lr)
optimizer = get_optimizer(premodel, lr)

oldcost = float('inf')
patience = 0
Expand Down

0 comments on commit 53163b0

Please sign in to comment.