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

Function IsPrimitiveOpWithNoGrad

tensorflow/core/graph/gradients.cc:330–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static bool IsPrimitiveOpWithNoGrad(const string& func) {
331 gradient::Creator creator;
332 Status s = gradient::GetOpGradientCreator(func, &creator);
333 return s.ok() && (creator == nullptr);
334}
335
336Status SymbolicGradientBuilder::Compute() {
337 // Initialize backprops.

Callers 2

ComputeMethod · 0.85
AddGradientsMethod · 0.85

Calls 2

GetOpGradientCreatorFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected