- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for IsNeg (0.04 seconds)
-
tensorflow/c/c_test_util.cc
} else if (attr.first == "N") { if (attr.second.i() == n) { found_n = true; } else { return false; } } } return found_t && found_n; } bool IsNeg(const tensorflow::NodeDef& node_def, const string& input) { return node_def.op() == "Neg" && node_def.name() == "neg" && node_def.input_size() == 1 && node_def.input(0) == input; }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 17.8K bytes - Click Count (1) -
tensorflow/c/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); // Serialize to NodeDef. NodeDef node_def; ASSERT_TRUE(GetNodeDef(neg, &node_def)); // Validate NodeDef is what we expect. EXPECT_TRUE(IsNeg(node_def, "add")); // Serialize to GraphDef. GraphDef graph_def2; ASSERT_TRUE(GetGraphDef(graph, &graph_def2)); // Compare with first GraphDef + added NodeDef.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 97.3K bytes - Click Count (0)