| 1754 | } |
| 1755 | |
| 1756 | TF_Operation* NoGradientOp(TF_Graph* graph, TF_Status* s, TF_Operation* in, |
| 1757 | const char* name) { |
| 1758 | TF_OperationDescription* desc = |
| 1759 | TF_NewOperation(graph, "TestOpWithNoGradient", name); |
| 1760 | TF_AddInput(desc, {in, 0}); |
| 1761 | TF_Operation* op = TF_FinishOperation(desc, s); |
| 1762 | EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); |
| 1763 | return op; |
| 1764 | } |
| 1765 | |
| 1766 | void BuildGraphAndAddGradientsWithPrefixes(const char* prefix1, |
| 1767 | const char* prefix2 = nullptr) { |
nothing calls this directly
no test coverage detected