(x)
| 179 | |
| 180 | @custom_gradient.custom_gradient |
| 181 | def identity(x): |
| 182 | def grad(_): |
| 183 | return [] # This return value is wrong! |
| 184 | return x, grad |
| 185 | |
| 186 | x = variables.Variable(1.0) |
| 187 | with backprop.GradientTape() as t: |
no outgoing calls
no test coverage detected