Skip to content

Commit

Permalink
Revert softmax deprecation fix till new release
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren committed Oct 30, 2017
1 parent 77ef1d8 commit 098e0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class InferenceBatchLogSoftmax(nn.Module):
def forward(self, input_):
if not self.training:
batch_size = input_.size()[0]
return torch.stack([F.log_softmax(input_[i], dim=1) for i in range(batch_size)], 0)
return torch.stack([F.log_softmax(input_[i]) for i in range(batch_size)], 0)
else:
return input_

Expand Down

0 comments on commit 098e0dc

Please sign in to comment.