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

Function InitGraph

tensorflow/core/graph/optimizer_fusion_engine_test.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace {
39
40static void InitGraph(const std::string& s, Graph* graph) {
41 GraphDef graph_def;
42
43 auto parser = protobuf::TextFormat::Parser();
44 // parser.AllowRelaxedWhitespace(true);
45 CHECK(parser.MergeFromString(s, &graph_def)) << s;
46 GraphConstructorOptions opts;
47 TF_CHECK_OK(ConvertGraphDefToGraph(opts, graph_def, graph));
48}
49
50class OptimizerFusionTest : public ::testing::Test {
51 public:

Callers 2

InitGraphMethod · 0.70
TEST_FFunction · 0.70

Calls 1

ConvertGraphDefToGraphFunction · 0.85

Tested by

no test coverage detected