Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhu committed Mar 17, 2021
1 parent e5adcae commit 56c7639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main():
model.train()
total_loss = np.zeros(3)
for idx, batch_data in enumerate(t):
loss, kld, bce = train(batch_data, model, optimizer, criterion, arg.lbd, 5)
loss, kld, bce = train(batch_data, model, optimizer, criterion, args.lbd, 5)
total_loss += np.array([loss, bce, kld])
if idx % eval_freq == 0 and idx > 0:
torch.save(model.state_dict(), "{}/parameter{}_{}".format(result_root, epoch, idx))
Expand Down

0 comments on commit 56c7639

Please sign in to comment.