Skip to content

Commit

Permalink
This PR fixes error raised during element-wise variable division. (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
twairball authored and soumith committed Jul 20, 2017
1 parent 2d0f1c4 commit 08be28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast_neural_style/neural_style/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def normalize_batch(batch):
std[:, 2, :, :] = 0.225
batch = torch.div(batch, 255.0)
batch -= Variable(mean)
batch /= Variable(std)
batch = batch / Variable(std)
return batch

0 comments on commit 08be28e

Please sign in to comment.