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

Function RegisterOp

tensorflow/core/framework/function.cc:1815–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1813}
1814
1815bool RegisterOp(const string& op, Creator func) {
1816 CHECK(GetOpGradFactory()->insert({op, func}).second)
1817 << "Duplicated gradient for " << op;
1818 return true;
1819}
1820
1821Status GetOpGradientCreator(const string& op, Creator* creator) {
1822 auto fac = GetOpGradFactory();

Callers

nothing calls this directly

Calls 2

GetOpGradFactoryFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected