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