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

Function QuantizeAndDequantizeV2Grad

tensorflow/cc/gradients/array_grad.cc:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91REGISTER_GRADIENT_OP("QuantizeAndDequantize", QuantizeAndDequantizeGrad);
92
93Status QuantizeAndDequantizeV2Grad(const Scope& scope, const Operation& op,
94 const std::vector<Output>& grad_inputs,
95 std::vector<Output>* grad_outputs) {
96 grad_outputs->push_back(Identity(scope, grad_inputs[0]));
97 grad_outputs->push_back(NoGradient());
98 grad_outputs->push_back(NoGradient());
99 return scope.status();
100}
101REGISTER_GRADIENT_OP("QuantizeAndDequantizeV2", QuantizeAndDequantizeV2Grad);
102
103Status QuantizeAndDequantizeV3Grad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 4

NoGradientFunction · 0.85
IdentityFunction · 0.50
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected