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

Function MakeNode

tensorflow/core/grappler/utils/canonicalizer_test.cc:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace {
23
24NodeDef MakeNode(const string& op) {
25 NodeDef node;
26 node.set_name("node");
27 node.set_op(op);
28 *node.add_input() = "b";
29 *node.add_input() = "a";
30 *node.add_input() = "^z";
31 *node.add_input() = "^y";
32 *node.add_input() = "^x";
33 *node.add_input() = "^z";
34 return node;
35}
36
37void Verify(const NodeDef& node) {
38 EXPECT_EQ(node.name(), "node");

Callers 2

TESTFunction · 0.85
ConvertMethod · 0.85

Calls 3

set_opMethod · 0.80
set_nameMethod · 0.45
add_inputMethod · 0.45

Tested by

no test coverage detected