Skip to content

Commit

Permalink
utilize LogSoftmax.exp()
Browse files Browse the repository at this point in the history
  • Loading branch information
masus04 committed Sep 14, 2018
1 parent 12d5ef9 commit 98f57f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abstractClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def forward(self, input, legal_moves_map):
x = input
# set illegal moves to zero, softmax, set illegal moves to zero again
# x = input * legal_moves_map
x = self.softmax(x)
x = self.softmax(x).exp()
x = x * legal_moves_map

return x
Expand Down

0 comments on commit 98f57f0

Please sign in to comment.