tensorflow/core/grappler/graph_analyzer/graph_analyzer_test.cc
// The control links propagate separately as all-or-none, even on the nodes
// that are all-or-none for the normal inputs.
The control links propagate separately as all-or-none, even on the nodes
that are all-or-none for the normal inputs.
The control links propagate separately as all - or - none even on the nodes that are all - or - none for the normal inputs .
TEST_F(GraphAnalyzerTest, AllOrNoneInputSeparateControl) {
  gran_ = absl::make_unique<GraphAnalyzer>(graph_all_or_none_, 5);
  Status st = BuildMap();
  ASSERT_THAT(st, Eq(Status::OK()));
  auto root =
      absl::make_unique<Subgraph>(Subgraph::Identity({GetNode("pass1")}));
  ExtendSubgraphPortAllOrNone(root.get(), GetNode("pass1"),
                              GenNode::Port(true, -1));
  EXPECT_THAT(DumpRawSubgraphs(), UnorderedElementsAre());
  EXPECT_THAT(DumpPartials(), UnorderedElementsAre(
      "1: Const(const2_1), Const(const2_2), Const(const2_3), IdentityN(pass1)"
      ));
  EXPECT_THAT(GetTodo(), SizeIs(1));
}
TEST_F ( GraphAnalyzerTest , AllOrNoneInputSeparateControl ) { gran_ = absl :: make_unique < GraphAnalyzer > ( graph_all_or_none_ , 5 ) ; 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 , -1 ) ) ; EXPECT_THAT ( DumpRawSubgraphs ( ) , UnorderedElementsAre ( ) ) ; EXPECT_THAT ( DumpPartials ( ) , UnorderedElementsAre ( " " ) ) ; EXPECT_THAT ( GetTodo ( ) , SizeIs ( 1 ) ) ; }
The control links propagate separately as all-or-none, even on the nodes
that are all-or-none for the normal inputs.
The control links propagate separately as all - or - none even on the nodes that are all - or - none for the normal inputs .
// clang-format off // clang-format on