(self)
| 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 |
nothing calls this directly
no test coverage detected