Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/common_runtime/
Daccumulate_n_optimizer.cc215 for (const Edge* out_edge : n->out_edges()) { in RewriteIntoTempVariable() local
216 if (out_edge->IsControlEdge()) { in RewriteIntoTempVariable()
217 g->AddControlEdge(clean_up_accumulator, out_edge->dst()); in RewriteIntoTempVariable()
219 g->AddEdge(clean_up_accumulator, 0, out_edge->dst(), in RewriteIntoTempVariable()
220 out_edge->dst_input()); in RewriteIntoTempVariable()
271 for (const Edge* out_edge : n->out_edges()) { in RewriteIntoAddN() local
272 if (out_edge->IsControlEdge()) { in RewriteIntoAddN()
273 g->AddControlEdge(add_n_node, out_edge->dst()); in RewriteIntoAddN()
275 g->AddEdge(add_n_node, 0, out_edge->dst(), out_edge->dst_input()); in RewriteIntoAddN()
Dconstant_folding.cc465 for (const Edge* out_edge : added_nodes.first->out_edges()) { in GetConstantGraph() local
466 if (node_map.count(out_edge->dst()) == 0) { in GetConstantGraph()
467 if (out_edge->IsControlEdge()) continue; in GetConstantGraph()
470 {{added_nodes.second[0], out_edge->src_output()}, in GetConstantGraph()
471 {added_nodes.first, out_edge->src_output()}}); in GetConstantGraph()
478 {{added_nodes.second[out_edge->src_output()], 0}, in GetConstantGraph()
479 {added_nodes.first, out_edge->src_output()}}); in GetConstantGraph()
543 for (const Edge* out_edge : n->out_edges()) { in ReplaceTensorWithConstant() local
544 if (out_edge->src_output() == tensor.second) { in ReplaceTensorWithConstant()
545 edges_to_remove.push_back(out_edge); in ReplaceTensorWithConstant()
Dimmutable_executor_state.cc325 for (const Edge* out_edge : curr_node->out_edges()) { in BuildControlFlowInfo() local
326 Node* out = out_edge->dst(); in BuildControlFlowInfo()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dscheduler.cc92 for (const Edge* out_edge : curr->out_edges()) { in ComputeAsap() local
95 const Node* out = out_edge->dst(); in ComputeAsap()
96 if (!out_edge->IsControlEdge() && in ComputeAsap()
110 bool is_ready = UpdatePending(out_edge, &pending_count); in ComputeAsap()
237 for (const Edge* out_edge : event.node->out_edges()) { in ComputeSchedule() local
239 const Node* out = out_edge->dst(); in ComputeSchedule()
240 if (!out_edge->IsControlEdge() && in ComputeSchedule()
252 bool is_ready = UpdatePending(out_edge, &pending_count); in ComputeSchedule()
/external/tensorflow/tensorflow/core/graph/
Dalgorithm.cc69 for (const Edge* out_edge : n->out_edges()) { in DFSFromHelper() local
70 if (!edge_filter || edge_filter(*out_edge)) { in DFSFromHelper()
71 nodes_sorted.emplace_back(out_edge->dst()); in DFSFromHelper()
79 for (const Edge* out_edge : n->out_edges()) { in DFSFromHelper() local
80 if (!edge_filter || edge_filter(*out_edge)) { in DFSFromHelper()
81 add_work(out_edge->dst()); in DFSFromHelper()
Dcontrol_flow.cc118 for (const Edge* out_edge : curr_node->out_edges()) { in BuildControlFlowInfo() local
119 const Node* out = out_edge->dst(); in BuildControlFlowInfo()
Dcollective_order.cc54 for (const Edge* out_edge : node->out_edges()) { in DiscoverDataDependencies() local
55 auto& child_deps = (*data_dependencies)[out_edge->dst()]; in DiscoverDataDependencies()
Dgraph_partition.cc395 for (const Edge* out_edge : node->out_edges()) { in OptimizeControlFlowColocation() local
396 if (!out_edge->IsControlEdge()) { in OptimizeControlFlowColocation()
397 data_edge = out_edge; in OptimizeControlFlowColocation()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/segment/
Dsegment.cc605 for (const SimpleEdge* out_edge : out_edges) { in ContractEdge() local
606 if (out_edge->IsControlEdge()) { in ContractEdge()
607 SimpleEdge* e = const_cast<SimpleEdge*>(out_edge); in ContractEdge()
610 SimpleEdge* e = const_cast<SimpleEdge*>(out_edge); in ContractEdge()
627 for (const auto& out_edge : dst->out_edges()) { in ContractEdge() local
628 remove_edges->push_back(out_edge); in ContractEdge()
834 for (const SimpleEdge* out_edge : node->out_edges()) { in SegmentGraph() local
835 VLOG(3) << "... out node " << out_edge->dst()->name() << " ( " in SegmentGraph()
836 << out_edge->dst()->id() << " <- " << node->id() << " )"; in SegmentGraph()
837 if (out_edge->IsControlEdge()) { in SegmentGraph()
[all …]
Dsegment_test.cc57 return [node_names](const Edge* out_edge) -> bool { in MakeOutputEdgeCandidateFn() argument
58 return node_names.find(out_edge->src()->name()) != node_names.end(); in MakeOutputEdgeCandidateFn()
/external/tensorflow/tensorflow/compiler/jit/
Dpartially_decluster_pass.cc122 for (const Edge* out_edge : n->out_edges()) { in PartiallyDeclusterNode() local
123 if (out_edge->IsControlEdge()) { in PartiallyDeclusterNode()
127 Node* dst = out_edge->dst(); in PartiallyDeclusterNode()
131 out_edges_to_clone.push_back(out_edge); in PartiallyDeclusterNode()
Dnode_matchers.cc348 OutEdge out_edge, in MatchAndExplain() argument
351 if (!src_matcher_.MatchAndExplain(out_edge.first, &inner_listener)) { in MatchAndExplain()
362 if (out_edge.second != src_oidx_) { in MatchAndExplain()
365 << " but found " << out_edge.second; in MatchAndExplain()
Dencapsulate_subgraphs_pass.cc1057 for (const Edge* out_edge : orig->out_edges()) { in MakePrunedGraphCopyAndInline() local
1058 auto iter = node_images->find(out_edge->dst()); in MakePrunedGraphCopyAndInline()
1062 ->AddEdge(image, out_edge->src_output(), iter->second, in MakePrunedGraphCopyAndInline()
1063 out_edge->dst_input()); in MakePrunedGraphCopyAndInline()
Ddeadness_analysis.cc1290 for (const Edge* out_edge : curr_node->out_edges()) { in GetFrameBasedTopologicalOrder() local
1291 Node* out = out_edge->dst(); in GetFrameBasedTopologicalOrder()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_util.cc737 for (const OutEdgeInfo& out_edge : out_edge_info) { in ReplaceNode() local
738 g->AddEdge(new_node, out_edge.src_output, out_edge.dst, out_edge.dst_input); in ReplaceNode()
847 for (const Edge* out_edge : fwd_arg->out_edges()) { in RewriteTensorListWithConstElement() local
848 if (out_edge->dst()->type_string() == "TensorListPushBack") { in RewriteTensorListWithConstElement()
849 tl_push_nodes.push_back(out_edge->dst()); in RewriteTensorListWithConstElement()
884 for (const Edge* out_edge : bwd_arg->out_edges()) { in RewriteTensorListWithConstElement() local
885 if (out_edge->dst()->type_string() == "TensorListPopBack") { in RewriteTensorListWithConstElement()
886 tl_pop_nodes.push_back(out_edge->dst()); in RewriteTensorListWithConstElement()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfold_constants_lib.cc267 for (const Edge* out_edge : node->out_edges()) { in FoldConstants() local
268 if (out_edge->IsControlEdge()) continue; in FoldConstants()
270 const int output_idx = out_edge->src_output(); in FoldConstants()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Dhost_training_loop_optimization_util.cc318 for (const auto out_edge : loop_switch_node->out_edges()) { in GetOrCreateBeforeEachIterationNode() local
319 if (out_edge->src_output() == 1) { in GetOrCreateBeforeEachIterationNode()
320 *node_out = out_edge->dst(); in GetOrCreateBeforeEachIterationNode()
Ddistributed_tpu_rewrite_pass.cc1866 for (const Edge* out_edge : body_node->out_edges()) { in InferXlaShardingFromNeighbors() local
1867 if (out_edge->IsControlEdge()) continue; in InferXlaShardingFromNeighbors()
1870 num_cores_per_replica, n.name(), *out_edge->dst(), &core, in InferXlaShardingFromNeighbors()
1873 TF_RETURN_IF_ERROR(parse_sharding_from_function(out_edge)); in InferXlaShardingFromNeighbors()
1941 for (const Edge* out_edge : edge->dst()->out_edges()) { in AssignArgsAndRetvalsToCores() local
1942 if (out_edge->dst()->type_string() == kTPUPartitionedOutput) { in AssignArgsAndRetvalsToCores()
1943 partitioned_output_nodes[edge->src_output()] = out_edge->dst(); in AssignArgsAndRetvalsToCores()
2956 for (const Edge* out_edge : edge->dst()->out_edges()) { in BuildExecuteNodes() local
2957 if (out_edge->dst()->type_string() == kTPUPartitionedOutput) { in BuildExecuteNodes()
2963 to_be_removed_nodes.push_back(out_edge->dst()); in BuildExecuteNodes()
[all …]
Dencapsulate_tpu_computations_pass.cc2054 for (const Edge* out_edge : out_edges) { in RemoveOutputIdentityNodesForWhileV2() local
2055 if (out_edge->IsControlEdge()) { in RemoveOutputIdentityNodesForWhileV2()
2056 g->AddControlEdge(while_node, out_edge->dst()); in RemoveOutputIdentityNodesForWhileV2()
2058 Node* dst = out_edge->dst(); in RemoveOutputIdentityNodesForWhileV2()
2059 int dst_input = out_edge->dst_input(); in RemoveOutputIdentityNodesForWhileV2()
2060 g->RemoveEdge(out_edge); in RemoveOutputIdentityNodesForWhileV2()
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dgraph_transferer.cc393 for (const Edge* out_edge : original_input_node->out_edges()) { in TransformGraphToAddAggregatedInputNode() local
394 Node* dst = out_edge->dst(); in TransformGraphToAddAggregatedInputNode()
395 int dst_port = out_edge->dst_input(); in TransformGraphToAddAggregatedInputNode()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.h163 bool operator()(const Edge* out_edge) const;
Dconvert_nodes.cc6599 bool OutputEdgeValidator::operator()(const Edge* out_edge) const { in operator ()()
6600 if (out_edge->IsControlEdge()) return true; in operator ()()
6601 if (out_edge->src()->type_string() == "Const") { in operator ()()
6602 VLOG(1) << "--> Need to remove output node " << out_edge->src()->name() in operator ()()
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_execute_utils.cc797 for (const Edge* out_edge : node->out_edges()) { in ClusterizeNodes() local
798 const Node* dst_node = out_edge->dst(); in ClusterizeNodes()
802 strings::StrCat(node->name(), ":", out_edge->src_output()); in ClusterizeNodes()