(op, grad)
| 38 | |
| 39 | @tf.RegisterGradient('MPGather') |
| 40 | def _GatherGrad(op, grad): |
| 41 | params = op.inputs[0] |
| 42 | indices = op.inputs[1] |
| 43 | return [scatter_add(grad, indices, tf.shape(params)[0]), None] |
| 44 | |
| 45 | |
| 46 | @tf.RegisterGradient('MPScatterAdd') |
nothing calls this directly
no test coverage detected