tensorflow/core/grappler/graph_analyzer/graph_analyzer_test.cc
// Propagate backwards through a multi-input link, finding that the
// resulting subgraph would be too large.
Propagate backwards through a multi-input link, finding that the
resulting subgraph would be too large.
Propagate backwards through a multi - input link finding that the resulting subgraph would be too large .
TEST_F(GraphAnalyzerTest, MultiInputTooLargeBackwards) {
  gran_ = absl::make_unique<GraphAnalyzer>(graph_multi_input_, 3);
  Status st = BuildMap();
  ASSERT_THAT(st, Eq(Status::OK()));
  auto root =
      absl::make_unique<Subgraph>(Subgraph::Identity({GetNode("add2")}));
  ExtendSubgraphPortAllOrNone(root.get(), GetNode("add2"),
                              GenNode::Port(true, 0));
  EXPECT_THAT(DumpRawSubgraphs(), UnorderedElementsAre());
  EXPECT_THAT(DumpPartials(), UnorderedElementsAre());
  EXPECT_THAT(GetTodo(), SizeIs(0));
}
TEST_F ( GraphAnalyzerTest , MultiInputTooLargeBackwards ) { gran_ = absl :: make_unique < GraphAnalyzer > ( graph_multi_input_ , 3 ) ; Status st = BuildMap ( ) ; ASSERT_THAT ( st , Eq ( Status :: OK ( ) ) ) ; auto root = absl :: make_unique < Subgraph > ( Subgraph :: Identity ( { GetNode ( " " ) } ) ) ; ExtendSubgraphPortAllOrNone ( root . get ( ) , GetNode ( " " ) , GenNode :: Port ( true , 0 ) ) ; EXPECT_THAT ( DumpRawSubgraphs ( ) , UnorderedElementsAre ( ) ) ; EXPECT_THAT ( DumpPartials ( ) , UnorderedElementsAre ( ) ) ; EXPECT_THAT ( GetTodo ( ) , SizeIs ( 0 ) ) ; }
Propagate backwards through a multi-input link, finding that the
resulting subgraph would be too large.
Propagate backwards through a multi - input link finding that the resulting subgraph would be too large .