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

Method FloatConst2x2

tensorflow/c/c_api_test.cc:1718–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 7

TF_NewOperationFunction · 0.85
TF_SetAttrTensorFunction · 0.85
TF_GetCodeFunction · 0.85
TF_SetAttrTypeFunction · 0.85
TF_FinishOperationFunction · 0.85
TF_MessageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected