- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsNeg (0.02 sec)
-
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; }
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Sat Oct 04 05:55:32 UTC 2025 - 17.8K bytes - Viewed (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.
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Mon Nov 17 00:00:38 UTC 2025 - 97K bytes - Viewed (0)