(x)
| 493 | return x |
| 494 | |
| 495 | def second(x): |
| 496 | grad = backprop.gradients_function(first, [0])(x)[0] |
| 497 | return math_ops.reduce_sum(grad, constant_op.constant([0])) |
| 498 | |
| 499 | f = constant_op.constant([[0.1]]) |
| 500 | grad = backprop.gradients_function(second, [0])(f)[0] |