| 244 | REGISTER_GRADIENT_OP("Squeeze", SqueezeGrad); |
| 245 | |
| 246 | Status TransposeGrad(const Scope& scope, const Operation& op, |
| 247 | const std::vector<Output>& grad_inputs, |
| 248 | std::vector<Output>* grad_outputs) { |
| 249 | auto inverted_perm = InvertPermutation(scope, op.input(1)); |
| 250 | grad_outputs->push_back(Transpose(scope, grad_inputs[0], inverted_perm)); |
| 251 | grad_outputs->push_back(NoGradient()); |
| 252 | return scope.status(); |
| 253 | } |
| 254 | REGISTER_GRADIENT_OP("Transpose", TransposeGrad); |
| 255 | |
| 256 | Status ReverseSequenceGrad(const Scope& scope, const Operation& op, |
nothing calls this directly
no test coverage detected