Beispiel #1
0
 def test_elu_inverses(self):
     for input_dim in [2, 5, 10]:
         self._test_inverse(input_dim, T.elu())
Beispiel #2
0
 def test_elu_shapes(self):
     for shape in [(3, ), (3, 4), (3, 4, 2)]:
         self._test_shape(shape, T.elu())
Beispiel #3
0
 def test_elu(self):
     # NOTE: Need following since helper function mistakenly doesn't take input dim
     self._test(lambda input_dim: T.elu(), autodiff=False)