| 1716 | } |
| 1717 | |
| 1718 | TF_Operation* FloatConst2x2(TF_Graph* graph, TF_Status* s, |
| 1719 | const float* values, const char* name) { |
| 1720 | unique_tensor_ptr tensor(FloatTensor2x2(values), TF_DeleteTensor); |
| 1721 | TF_OperationDescription* desc = TF_NewOperation(graph, "Const", name); |
| 1722 | TF_SetAttrTensor(desc, "value", tensor.get(), s); |
| 1723 | if (TF_GetCode(s) != TF_OK) return nullptr; |
| 1724 | TF_SetAttrType(desc, "dtype", TF_FLOAT); |
| 1725 | TF_Operation* op = TF_FinishOperation(desc, s); |
| 1726 | EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); |
| 1727 | return op; |
| 1728 | } |
| 1729 | |
| 1730 | TF_Operation* MatMul(TF_Graph* graph, TF_Status* s, TF_Operation* l, |
| 1731 | TF_Operation* r, const char* name, |
nothing calls this directly
no test coverage detected