tensorflow/core/grappler/graph_analyzer/graph_analyzer_test.cc
// Successfully propagate forwards to all-or-none-input node. This includes
// both all-or-none-input for the normal inputs, and multi-input by the
// control path.
Successfully propagate forwards to all-or-none-input node. This includes
both all-or-none-input for the normal inputs, and multi-input by the
control path.
Successfully propagate forwards to all - or - none - input node . This includes both all - or - none - input for the normal inputs and multi - input by the control path .
TEST_F(GraphAnalyzerTest, AllOrNoneInputSuccessForwardsFull) {
  gran_ = absl::make_unique<GraphAnalyzer>(graph_all_or_none_, 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: Const(const2_1), Const(const2_2), Const(const2_3), IdentityN(pass2)",
      "1: Const(const2_1), Const(const2_2), Const(const2_3), IdentityN(pass1)"
      ));
  EXPECT_THAT(DumpPartials(), UnorderedElementsAre());
  EXPECT_THAT(GetTodo(), SizeIs(0));
}
TEST_F ( GraphAnalyzerTest , AllOrNoneInputSuccessForwardsFull ) { gran_ = absl :: make_unique < GraphAnalyzer > ( graph_all_or_none_ , 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 to all-or-none-input node.
Successfully propagate forwards to all - or - none - input node .
// clang-format off // clang-format on