| 35 | namespace { |
| 36 | |
| 37 | static 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 | |
| 47 | class OptimizerCSETest : public ::testing::Test { |
| 48 | public: |
no test coverage detected