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

Function NegHelper

tensorflow/c/c_test_util.cc:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void NegHelper(TF_Operation* n, TF_Graph* graph, TF_Status* s, const char* name,
253 TF_Operation** op) {
254 TF_OperationDescription* desc = TF_NewOperation(graph, "Neg", name);
255 TF_Output neg_input = {n, 0};
256 TF_AddInput(desc, neg_input);
257 *op = TF_FinishOperation(desc, s);
258 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
259 ASSERT_NE(*op, nullptr);
260}
261
262TF_Operation* Neg(TF_Operation* n, TF_Graph* graph, TF_Status* s,
263 const char* name) {

Callers 1

NegFunction · 0.85

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