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

Function GetOpGradientCreator

tensorflow/core/framework/function.cc:1821–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1819}
1820
1821Status GetOpGradientCreator(const string& op, Creator* creator) {
1822 auto fac = GetOpGradFactory();
1823 auto iter = fac->find(op);
1824 if (iter == fac->end()) {
1825 return errors::NotFound("No gradient defined for op: ", op);
1826 }
1827 *creator = iter->second;
1828 return Status::OK();
1829}
1830
1831} // end namespace gradient
1832

Callers 3

IsPrimitiveOpWithNoGradFunction · 0.85

Calls 4

GetOpGradFactoryFunction · 0.85
NotFoundFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected