Fix AdaptiveLogSoftmaxWithLoss's constructor (#16694)
authorwbydo <wbydo@users.noreply.github.com>
Fri, 15 Feb 2019 14:43:40 +0000 (06:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Feb 2019 14:58:00 +0000 (06:58 -0800)
commit6c67dcfb059e997a35b337cebfe7fc248ba957b6
tree6b5611abe82bcceb804982b9c518894ea15d5dcd
parent48943c3b7a98eb84900f9b22ff1b9b86b89df973
Fix AdaptiveLogSoftmaxWithLoss's constructor (#16694)

Summary:
t-ken1 and I are members of a same team.
I have added test codes about the pull request https://github.com/pytorch/pytorch/pull/16656.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16694

Differential Revision: D14070106

Pulled By: ezyang

fbshipit-source-id: ff784dbf45e96a6bcf9a4b5cb9544a661a8acad2
test/test_nn.py
torch/nn/modules/adaptive.py