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

Function GetOpGradFactory

tensorflow/core/framework/function.cc:1810–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1808typedef std::unordered_map<string, Creator> OpGradFactory;
1809
1810OpGradFactory* GetOpGradFactory() {
1811 static OpGradFactory* factory = new OpGradFactory;
1812 return factory;
1813}
1814
1815bool RegisterOp(const string& op, Creator func) {
1816 CHECK(GetOpGradFactory()->insert({op, func}).second)

Callers 2

RegisterOpFunction · 0.85
GetOpGradientCreatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected