Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
weberwcwei authored Nov 17, 2018
1 parent 5a905de commit 81fc48b
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 @@ -107,7 +107,7 @@ def train(epoch):
epoch_loss = 0
for iteration, batch in enumerate(trainDataloader, 0):
varIn, varTar = Variable(batch[0]), Variable(batch[1])
varIn, varTar = varTar.float(), varIn.float()
varIn, varTar = varIn.float(), varTar.float()

if args.cuda:
varIn = varIn.cuda()
Expand Down

0 comments on commit 81fc48b

Please sign in to comment.