Skip to content

Commit

Permalink
fix fast neural transfer on cuda (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnl authored and soumith committed Jul 26, 2018
1 parent 98b1fce commit b5f3612
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast_neural_style/neural_style/neural_style.py
Expand Up @@ -69,7 +69,8 @@ def train(args):
count += n_batch
optimizer.zero_grad()

y = transformer(x.to(device))
x = x.to(device)
y = transformer(x)

y = utils.normalize_batch(y)
x = utils.normalize_batch(x)
Expand Down

0 comments on commit b5f3612

Please sign in to comment.