Home | History | Annotate | Download | only in graph

Lines Matching defs:def

478       def s(t):
795 GraphDef def;
796 ASSERT_TRUE(protobuf::TextFormat::ParseFromString(pb_ascii, &def));
799 auto s = ImportGraphDef(opts, def, &graph_, nullptr);
893 GraphDef def;
899 Status s = ImportGraphDef(opts, def, &graph_, nullptr);
930 &def);
934 s = ImportGraphDef(opts, def, &graph_, nullptr);
950 s = ImportGraphDef(opts, def, &graph_, nullptr);
955 s = ImportGraphDef(opts, def, &graph_, nullptr);
983 GraphDef def;
985 "node{ name:'A' op:'TestDefaultAttr'}", &def));
986 Status s = ImportGraphDef(ImportGraphDefOptions(), def, &graph_, nullptr);
998 ASSERT_EQ(Status::OK(), s) << s << " -- " << a->def().DebugString();
1003 GraphDef def;
1006 def.mutable_versions()->set_producer(TF_GRAPH_DEF_VERSION_MIN_PRODUCER - 1);
1007 Status s = ImportGraphDef(opts, def, &graph_, nullptr);
1010 def.mutable_versions()->Clear();
1011 def.mutable_versions()->set_min_consumer(TF_GRAPH_DEF_VERSION + 1);
1012 s = ImportGraphDef(opts, def, &graph_, nullptr);
1015 def.mutable_versions()->Clear();
1016 def.mutable_versions()->add_bad_consumers(TF_GRAPH_DEF_VERSION);
1017 s = ImportGraphDef(opts, def, &graph_, nullptr);
1020 def.mutable_versions()->Clear();
1021 graph_.ToGraphDef(&def);
1022 s = ImportGraphDef(opts, def, &graph_, nullptr);
1025 def.Clear();
1027 def.mutable_versions()->set_min_consumer(original_min_consumer + 2);
1028 def.mutable_versions()->add_bad_consumers(TF_GRAPH_DEF_VERSION - 1);
1029 s = ImportGraphDef(opts, def, &graph_, nullptr);
1038 GraphDef def;
1126 &def);
1128 Status s = ImportGraphDef(ImportGraphDefOptions(), def, &graph_, nullptr);
1132 def.mutable_versions()->set_producer(10);
1133 s = ImportGraphDef(ImportGraphDefOptions(), def, &g2, nullptr);
1144 GraphDef def;
1160 &def);
1162 Status s = ImportGraphDef(ImportGraphDefOptions(), def, &graph_, nullptr);
1702 // Requesting tensor that isn't in graph def
1705 {"Requested return tensor 'new_input:0' not found in graph def"},
1786 // Requesting node that isn't in graph def
1789 {"Requested return node 'new_input' not found in graph def"},
1817 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A");
1826 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A_1:0");
1835 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A_2:0");
1846 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A_3/A");
1859 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A/A");
1868 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A/A_1:0");
1884 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A_1_1:0");
1906 EXPECT_EQ(results.return_nodes[2]->def().input(0), "A_5:0");
1908 EXPECT_EQ(results.return_nodes[3]->def().input(0), "A_4");
1961 EXPECT_EQ(results.return_nodes[1]->def().input(0), "A:0");
2040 GraphDef def;
2241 &def);
2243 Status s = ImportGraphDef(ImportGraphDefOptions(), def, &graph_, nullptr);
2416 // Control dep that isn't in graph def
2424 GraphDef def;
2426 NodeDefBuilder("scope/A", "TestParams").Finalize(def.add_node()));
2431 Status s = ImportGraphDef(opts, def, &graph_, nullptr);
2454 EXPECT_IMPORT_FAILURE(def, opts,
2464 EXPECT_IMPORT_FAILURE(def, opts,
2558 // Import a graph def containing a function. The graph def was generated using
2561 // def FooGrad(x, y, dz): return dz, dz
2564 // def Foo(x, y): return x + y
2656 // Import a graph def containing a function. The graph def was generated using
2659 // def Inner(x, y): return x + y
2662 // def Outer(x, y): return Inner(x, y)
2768 // Confirms that graph def version in the graph reaches the shape inference
3068 // Check that the refiner's graph def version is the lowest of
3141 // Check that the refiner's graph def version is the lowest of
3147 GraphDef def;
3151 &def));
3155 Status s = ImportGraphDef(options, def, &graph_, nullptr);
3158 TF_EXPECT_OK(ImportGraphDef(options, def, &graph_, nullptr));