diff options
author | Asim Shankar <ashankar@google.com> | 2018-05-10 09:38:11 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-10 09:41:04 -0700 |
commit | e696dc1bd07f62c6621a7224e15c8d3fbc160054 (patch) | |
tree | 053a25637e965762bca20ac8496e20a0b6ed343d /tensorflow/python/eager/backprop_test.py | |
parent | 4522626aff528815bc4087ab5b43c88b2d17a832 (diff) |
Automated g4 rollback of changelist 195878952
PiperOrigin-RevId: 196127751
Diffstat (limited to 'tensorflow/python/eager/backprop_test.py')
-rw-r--r-- | tensorflow/python/eager/backprop_test.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tensorflow/python/eager/backprop_test.py b/tensorflow/python/eager/backprop_test.py index be674487f1..8d9959fe20 100644 --- a/tensorflow/python/eager/backprop_test.py +++ b/tensorflow/python/eager/backprop_test.py @@ -124,14 +124,6 @@ class BackpropTest(test.TestCase): grad_fn = backprop.gradients_function(f) self.assertAllEqual(2., grad_fn(1., dy=2.)[0]) - def testGradientInteger(self): - - def f(x): - return x + x - - int_tensor = constant_op.constant(1) - self.assertEqual(backprop.gradients_function(f)(int_tensor)[0], None) - def testErrors(self): @custom_gradient.custom_gradient @@ -761,7 +753,7 @@ class BackpropTest(test.TestCase): return result, grad x = resource_variable_ops.ResourceVariable( - initial_value=3., name='X.' + self.id()) + initial_value=3, name='X.' + self.id()) def f(): return my_square(x) |