(x)
| 573 | return math_ops.abs(math_ops.complex(real, imag)) |
| 574 | |
| 575 | def g(x): |
| 576 | with backprop.GradientTape() as t: |
| 577 | t.watch(x) |
| 578 | y = f(x) |
| 579 | return t.gradient(y, x) |
| 580 | |
| 581 | err = gradient_checker_v2.max_error( |
| 582 | *gradient_checker_v2.compute_gradient(g, [ops.convert_to_tensor(2.0)])) |
nothing calls this directly
no test coverage detected