(x)
| 479 | with self.cached_session(): |
| 480 | |
| 481 | def f(x): |
| 482 | with backprop.GradientTape(persistent=True) as tape: |
| 483 | tape.watch(x) |
| 484 | y = nn_ops.elu(x) |
| 485 | dy = tape.gradient(y, x) |
| 486 | return tape.gradient(dy, x) |
| 487 | |
| 488 | for x in [-1., -0.5, 0.5, 1.]: |
| 489 | got = self.evaluate(f(constant_op.constant(x))) |
nothing calls this directly
no test coverage detected