Home
last modified time | relevance | path

Searched refs:sink_node (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/core/graph/
Dgraph_test.cc159 Node* sink = graph_.sink_node(); in TEST_F()
189 graph_.AddControlEdge(a, graph_.sink_node()); in TEST_F()
191 graph_.AddControlEdge(c, graph_.sink_node()); in TEST_F()
194 VerifyNodes(a, {graph_.source_node()}, {c, graph_.sink_node()}); in TEST_F()
197 VerifyNodes(c, {a}, {graph_.sink_node()}); in TEST_F()
202 VerifyNodes(graph_.source_node(), {}, {a, graph_.sink_node()}); in TEST_F()
203 VerifyNodes(graph_.sink_node(), {a, c, graph_.source_node()}, {}); in TEST_F()
206 VerifyNodes(a, {}, {c, graph_.sink_node()}); in TEST_F()
207 VerifyNodes(graph_.source_node(), {}, {graph_.sink_node()}); // no more a in TEST_F()
210 VerifyNodes(a, {}, {graph_.sink_node()}); // no more c in TEST_F()
[all …]
Dquantize_training_test.cc95 g->AddControlEdge(m1, g->sink_node()); in TEST_F()
146 g->AddControlEdge(m1, g->sink_node()); in TEST_F()
196 g->AddControlEdge(m1, g->sink_node()); in TEST_F()
197 g->AddControlEdge(m2, g->sink_node()); in TEST_F()
208 g->AddControlEdge(backward_m, g->sink_node()); in TEST_F()
250 g->AddControlEdge(m1, g->sink_node()); in TEST_F()
251 g->AddControlEdge(m2, g->sink_node()); in TEST_F()
262 g->AddControlEdge(backward_m, g->sink_node()); in TEST_F()
297 graph->AddControlEdge(matmul, graph->sink_node()); in TEST_F()
334 graph->AddControlEdge(matmul, graph->sink_node()); in TEST_F()
[all …]
Dalgorithm.cc116 ReverseDFSFrom(g, {g.sink_node()}, enter, leave, stable_comparator); in ReverseDFS()
259 g->AddControlEdge(n, g->sink_node(), true /* skip test for duplicates */); in FixupSourceAndSinkEdges()
Dalgorithm_test.cc175 g.sink_node(), g.FindNodeId(n3->id()), g.FindNodeId(n2->id()), in TEST()
Dsubgraph.cc169 g->AddControlEdge(fetch_node, g->sink_node(), true); in FetchOutputs()
Dgraph_constructor.cc1315 node_map[src.sink_node()] = dest->sink_node(); in CopyGraph()
Dgraph.h605 Node* sink_node() const { return FindNodeId(kSinkId); } in sink_node() function
Dgraph.cc465 if (source == source_node() || dest == sink_node() || x == kControlSlot || in AddEdge()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dgraph_utils_test.cc281 NodeDef sink_node; in TEST() local
282 TF_EXPECT_OK(FindSinkNode(graph_def, &sink_node)); in TEST()
283 EXPECT_EQ(sink_node.name(), node3->name()); in TEST()
293 NodeDef sink_node; in TEST() local
294 Status s = FindSinkNode(graph_def, &sink_node); in TEST()
302 NodeDef sink_node; in TEST() local
303 Status s = FindSinkNode(graph_def, &sink_node); in TEST()
Drebatch.cc251 NodeDef sink_node; in OptimizeGraph() local
252 TF_RETURN_IF_ERROR(graph_utils::FindSinkNode(item.graph, &sink_node)); in OptimizeGraph()
254 RecursivelyHandleOp(sink_node, num_workers, &flib, &graph)); in OptimizeGraph()
Dauto_shard.cc243 NodeDef sink_node; in OptimizeGraph() local
244 TF_RETURN_IF_ERROR(graph_utils::FindSinkNode(item.graph, &sink_node)); in OptimizeGraph()
245 TF_RETURN_IF_ERROR(RecursivelyHandleOp(sink_node, num_workers, index, &flib, in OptimizeGraph()
Dgraph_utils.h148 Status FindSinkNode(const GraphDef& graph_def, NodeDef* sink_node);
Dgraph_utils.cc310 Status FindSinkNode(const GraphDef& graph_def, NodeDef* sink_node) { in FindSinkNode() argument
330 *sink_node = sink_graph_node; in FindSinkNode()
/external/tensorflow/tensorflow/compiler/jit/
Dbuild_xla_ops_pass_test.cc246 Node* sink_node = graph->sink_node(); in TEST_F() local
247 EXPECT_THAT(sink_node, NodeWith(CtrlDeps(NodeWith(Op("_XlaRun")), in TEST_F()
Dextract_outside_compilation_pass.cc384 if (!e->IsControlEdge() || e->dst() != g->sink_node()) { in ReplaceOrRemoveOutsideCompilationCallNode()
512 node_map[host_fbody->graph->sink_node()] = host_graph.sink_node(); in ConstructHostGraph()
574 host_graph.AddControlEdge(sequencer, host_graph.sink_node()); in ConstructHostGraph()
577 &host_graph, std::unordered_set<const Node*>{host_graph.sink_node()}); in ConstructHostGraph()
634 node_map[host_graph->sink_node()] = main_graph->sink_node(); in ExpandHostGraphIntoMainGraph()
1556 (*graph)->AddControlEdge(send_from_host_node, (*graph)->sink_node()); in operator ()()
1559 graph->get(), std::unordered_set<const Node*>{(*graph)->sink_node()}); in operator ()()
Dencapsulate_util.cc346 for (const Edge* e : g->sink_node()->in_edges()) { in PreprocessEdgesBetweenOutsideCompilations()
Dbuild_xla_ops_pass.cc124 s.graph()->AddControlEdge(new_node, s.graph()->sink_node()); in MergeOutgoingControlEdges()
Dencapsulate_subgraphs_pass.cc1594 (*node_images)[graph_in_->sink_node()] = graph_out->sink_node(); in CopyNodesToOutputGraph()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dscheduler.cc116 return (*asap_times)[graph_->sink_node()->id()]; in ComputeAsap()
141 Node* sinkNode = graph_->sink_node(); in ComputeAlap()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/segment/
Dsegment.cc130 const SimpleNode* sink_node() const { return nodes_[Graph::kSinkId]; } in sink_node() function in tensorflow::tensorrt::segment::SimpleGraph
152 nodes_[g->kSinkId] = new SimpleNode(g->sink_node(), g->kSinkId); in SimpleGraph()
383 if (e->dst() == graph->sink_node()) { in ContractEdge()
/external/tensorflow/tensorflow/core/common_runtime/
Dconstant_folding.cc427 node_map[orig_graph->sink_node()] = {constant_graph->sink_node()}; in GetConstantGraph()
Dfunction.cc1985 node_map[src.sink_node()->id()] = dst->sink_node(); in Copy()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_test.cc247 graph.AddControlEdge(n, graph.sink_node()); in TEST()