| 1745 | } |
| 1746 | |
| 1747 | TF_Operation* OnesLike(TF_Graph* graph, TF_Status* s, TF_Operation* in, |
| 1748 | const char* name) { |
| 1749 | TF_OperationDescription* desc = TF_NewOperation(graph, "OnesLike", name); |
| 1750 | TF_AddInput(desc, {in, 0}); |
| 1751 | TF_Operation* op = TF_FinishOperation(desc, s); |
| 1752 | EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); |
| 1753 | return op; |
| 1754 | } |
| 1755 | |
| 1756 | TF_Operation* NoGradientOp(TF_Graph* graph, TF_Status* s, TF_Operation* in, |
| 1757 | const char* name) { |
nothing calls this directly
no test coverage detected