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

Function MatrixBandPartGrad

tensorflow/cc/gradients/array_grad.cc:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177REGISTER_GRADIENT_OP("MatrixDiag", MatrixDiagGrad);
178
179Status MatrixBandPartGrad(const Scope& scope, const Operation& op,
180 const std::vector<Output>& grad_inputs,
181 std::vector<Output>* grad_outputs) {
182 auto num_lower = op.input(1);
183 auto num_upper = op.input(2);
184 grad_outputs->push_back(
185 MatrixBandPart(scope, grad_inputs[0], num_lower, num_upper));
186 grad_outputs->push_back(NoGradient());
187 grad_outputs->push_back(NoGradient());
188 return scope.status();
189}
190REGISTER_GRADIENT_OP("MatrixBandPart", MatrixBandPartGrad);
191
192Status GatherNdGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 5

MatrixBandPartFunction · 0.85
NoGradientFunction · 0.85
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected