aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/eager/function_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/eager/function_test.py')
-rw-r--r--tensorflow/python/eager/function_test.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tensorflow/python/eager/function_test.py b/tensorflow/python/eager/function_test.py
index 209715894e..243efccac4 100644
--- a/tensorflow/python/eager/function_test.py
+++ b/tensorflow/python/eager/function_test.py
@@ -62,21 +62,13 @@ class FunctionTest(test.TestCase):
@function.defun
def step():
def inner():
+ tape.watch_variable(v)
return v * v
return backprop.implicit_grad(inner)()[0][0]
self.assertAllEqual(step(), 2.0)
- def testDefunDifferentiable(self):
- v = resource_variable_ops.ResourceVariable(1.0)
-
- @function.defun
- def f():
- return v * v
-
- self.assertAllEqual(backprop.implicit_grad(f)()[0][0], 2.0)
-
def testGraphModeCaptureVariable(self):
with context.graph_mode(), self.test_session() as sess: