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

Method OnesLike

tensorflow/c/c_api_test.cc:1747–1754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 5

TF_NewOperationFunction · 0.85
TF_AddInputFunction · 0.85
TF_FinishOperationFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85

Tested by

no test coverage detected