(self)
| 156 | self.assertEqual(3.0, val2.numpy()) |
| 157 | |
| 158 | def testGradient(self): |
| 159 | def f(x): |
| 160 | return x |
| 161 | |
| 162 | with self.test_scope(): |
| 163 | grad_fn = backprop.gradients_function(f) |
| 164 | self.assertAllEqual(2., grad_fn(1., dy=2.)[0]) |
| 165 | |
| 166 | def testVariableGradient(self): |
| 167 | with self.test_scope(): |
nothing calls this directly
no test coverage detected