MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testWatchBadThing

Method testWatchBadThing

tensorflow/python/eager/backprop_test.py:1379–1382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1377
1378 @test_util.run_in_graph_and_eager_modes
1379 def testWatchBadThing(self):
1380 g = backprop.GradientTape()
1381 with self.assertRaisesRegexp(ValueError, 'ndarray'):
1382 g.watch(np.array(1.))
1383
1384
1385class JacobianTest(test.TestCase):

Callers

nothing calls this directly

Calls 2

watchMethod · 0.95
GradientTapeMethod · 0.45

Tested by

no test coverage detected