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

Function InitGraph

tensorflow/core/graph/optimizer_cse_test.cc:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

InitGraphMethod · 0.70
TEST_FFunction · 0.70
BM_CSEFunction · 0.70
InitGraphMethod · 0.70
TEST_FFunction · 0.70

Calls 1

ConvertGraphDefToGraphFunction · 0.85

Tested by

no test coverage detected