(self)
| 149 | self.evaluate(gz_x) |
| 150 | |
| 151 | def testBoundaryStop(self): |
| 152 | # Test that we don't differentiate 'x'. The gradient function for 'x' is |
| 153 | # set explicitly to None so we will get an exception if the gradient code |
| 154 | # tries to differentiate 'x'. |
| 155 | with ops.Graph().as_default(): |
| 156 | c = constant(1.0) |
| 157 | x = array_ops.identity(c) |
| 158 | y = x + 1.0 |
| 159 | z = y + 1 |
| 160 | grads = gradients.gradients(z, [x]) |
| 161 | self.assertTrue(all(x is not None for x in grads)) |
| 162 | |
| 163 | @test_util.run_v1_only("b/120545219") |
| 164 | def testBoundaryContinue(self): |
nothing calls this directly
no test coverage detected