tensorflow/core/grappler/graph_analyzer/graph_analyzer_test.cc
TEST_F(GraphAnalyzerTest, MultiInputSuccessForwardsFull) {
  gran_ = absl::make_unique<GraphAnalyzer>(graph_multi_input_, 4);
  Status st = BuildMap();
  ASSERT_THAT(st, Eq(Status::OK()));

  auto root =
      absl::make_unique<Subgraph>(Subgraph::Identity({GetNode("const2_1")}));

  ExtendSubgraph(root.get());

  // clang-format off
  EXPECT_THAT(DumpRawSubgraphs(), UnorderedElementsAre(
      "1: AddN(add2), Const(const2_1), Const(const2_2), Const(const2_3)"
      ));
  // clang-format on
  EXPECT_THAT(DumpPartials(), UnorderedElementsAre());
  EXPECT_THAT(GetTodo(), SizeIs(0));
}
// Successfully propagate forwards through a multi-input link.
Successfully propagate forwards through a multi-input link.
Successfully propagate forwards through a multi - input link .
TEST_F(GraphAnalyzerTest, MultiInputSuccessForwardsFull) {
  gran_ = absl::make_unique<GraphAnalyzer>(graph_multi_input_, 4);
  Status st = BuildMap();
  ASSERT_THAT(st, Eq(Status::OK()));
  auto root =
      absl::make_unique<Subgraph>(Subgraph::Identity({GetNode("const2_1")}));
  ExtendSubgraph(root.get());
  EXPECT_THAT(DumpRawSubgraphs(), UnorderedElementsAre(
      "1: AddN(add2), Const(const2_1), Const(const2_2), Const(const2_3)"
      ));
  EXPECT_THAT(DumpPartials(), UnorderedElementsAre());
  EXPECT_THAT(GetTodo(), SizeIs(0));
}
TEST_F ( GraphAnalyzerTest , MultiInputSuccessForwardsFull ) { gran_ = absl :: make_unique < GraphAnalyzer > ( graph_multi_input_ , 4 ) ; Status st = BuildMap ( ) ; ASSERT_THAT ( st , Eq ( Status :: OK ( ) ) ) ; auto root = absl :: make_unique < Subgraph > ( Subgraph :: Identity ( { GetNode ( " " ) } ) ) ; ExtendSubgraph ( root . get ( ) ) ; EXPECT_THAT ( DumpRawSubgraphs ( ) , UnorderedElementsAre ( " " ) ) ; EXPECT_THAT ( DumpPartials ( ) , UnorderedElementsAre ( ) ) ; EXPECT_THAT ( GetTodo ( ) , SizeIs ( 0 ) ) ; }
Successfully propagate forwards through a multi-input link.
Successfully propagate forwards through a multi - input link .
// clang-format off // clang-format on