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

Function AddWithCtrlDependency

tensorflow/c/c_test_util.cc:197–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197TF_Operation* AddWithCtrlDependency(TF_Operation* l, TF_Operation* r,
198 TF_Graph* graph, TF_Operation* ctrl_op,
199 TF_Status* s, const char* name) {
200 TF_OperationDescription* desc = TF_NewOperation(graph, "AddN", name);
201 TF_Output add_inputs[2] = {{l, 0}, {r, 0}};
202 TF_AddInputList(desc, add_inputs, 2);
203 TF_AddControlInput(desc, ctrl_op);
204 return TF_FinishOperation(desc, s);
205}
206
207// If `op_device` is non-empty, set the created op on that device.
208void BinaryOpHelper(const char* op_name, TF_Operation* l, TF_Operation* r,

Callers 1

TEST_FFunction · 0.85

Calls 4

TF_NewOperationFunction · 0.85
TF_AddInputListFunction · 0.85
TF_AddControlInputFunction · 0.85
TF_FinishOperationFunction · 0.85

Tested by

no test coverage detected