Skip to content

Commit

Permalink
make tf.nn.softmax axis=-2 safer
Browse files Browse the repository at this point in the history
  • Loading branch information
raggledodo committed Sep 26, 2019
1 parent 84633d7 commit 25d3e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eteq/test/ptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def test_softmax(self):
self._common_unary_tf(shape, lambda arr: tc.softmax(arr,
offset=0, ndims=1), tf.nn.softmax)
self._common_unary_tf(shape, lambda arr: tc.softmax(arr,
offset=1, ndims=1), lambda arr: tf.nn.softmax(arr, axis=-2))
offset=1, ndims=1), lambda arr: tf.nn.softmax(arr, axis=len(shape)-2))

def test_square(self):
shapes = [[3, 4, 5]]
Expand Down

0 comments on commit 25d3e41

Please sign in to comment.