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

Method testDy

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

Source from the content-addressed store, hash-verified

199 self.assertAllEqual(dx, 4.0)
200
201 def testDy(self):
202
203 def f(x):
204 return x
205
206 grad_fn = backprop.gradients_function(f)
207 self.assertAllEqual(2., grad_fn(1., dy=2.)[0])
208
209 def testGradientInteger(self):
210

Callers

nothing calls this directly

Calls 2

grad_fnFunction · 0.70
assertAllEqualMethod · 0.45

Tested by

no test coverage detected