MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TransposeGrad

Function TransposeGrad

tensorflow/cc/gradients/array_grad.cc:246–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244REGISTER_GRADIENT_OP("Squeeze", SqueezeGrad);
245
246Status 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}
254REGISTER_GRADIENT_OP("Transpose", TransposeGrad);
255
256Status ReverseSequenceGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 6

InvertPermutationFunction · 0.85
NoGradientFunction · 0.85
TransposeClass · 0.50
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected