Skip to content

Commit

Permalink
Merge pull request pytorch#148 from adham/patch-1
Browse files Browse the repository at this point in the history
update softmax code example comments
  • Loading branch information
chsasank authored Sep 30, 2017
2 parents 137f35a + 6f1a455 commit 64ed72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beginner_source/nlp/deep_learning_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
# then dividing by the normalization constant.
#

# Softmax is also in torch.functional
# Softmax is also in torch.nn.functional
data = autograd.Variable(torch.randn(5))
print(data)
print(F.softmax(data))
Expand Down

0 comments on commit 64ed72b

Please sign in to comment.