Home
last modified time | relevance | path

Searched refs:fanouts (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc132 void SwapRegularFanoutInputs(FanoutsMap* fanouts, NodeDef* from_node, in SwapRegularFanoutInputs() argument
138 auto it = fanouts->find(port); in SwapRegularFanoutInputs()
139 if (it == fanouts->end()) { in SwapRegularFanoutInputs()
151 void SwapFanoutInputs(const MutableGraphView& graph, FanoutsMap* fanouts, in SwapFanoutInputs() argument
154 auto from_control_fanouts = fanouts->find({from_node, Graph::kControlSlot}); in SwapFanoutInputs()
155 if (from_control_fanouts != fanouts->end()) { in SwapFanoutInputs()
158 auto to_control_fanouts = fanouts->find({to_node, Graph::kControlSlot}); in SwapFanoutInputs()
159 if (to_control_fanouts != fanouts->end()) { in SwapFanoutInputs()
164 SwapRegularFanoutInputs(fanouts, from_node, to_node->name(), in SwapFanoutInputs()
169 SwapRegularFanoutInputs(fanouts, to_node, from_node->name(), in SwapFanoutInputs()
[all …]
Dgraph_view_test.cc164 absl::flat_hash_set<string> fanouts; in TEST_F() local
167 fanouts.insert(absl::StrCat(fo.node->name(), ":", fo.port_id)); in TEST_F()
170 EXPECT_EQ(fanouts, expected_fanouts); in TEST_F()
Dmutable_graph_view_test.cc57 absl::Span<const string> fanouts) { in CompareNodeFanouts() argument
60 EXPECT_EQ(node_fanouts.size(), fanouts.size()); in CompareNodeFanouts()
61 for (const string& fanout : fanouts) { in CompareNodeFanouts()
73 absl::Span<const string> fanouts) { in CheckNode() argument
85 CompareNodeFanouts(graph, node, fanouts); in CheckNode()
1188 auto fanouts = graph.GetFanout(output_port); in CheckFanoutRemoved() local
1189 for (auto fanout : fanouts) { in CheckFanoutRemoved()
Dgraph_view.h360 absl::flat_hash_map<OutputPort, absl::flat_hash_set<InputPort>>& fanouts() { in fanouts() function
/external/tensorflow/tensorflow/core/grappler/utils/
Dpattern_utils.h211 for (const auto& fanouts : fanouts_by_ports) { in HasRemoveNodeExternalDependents() local
212 for (const auto& fanout : fanouts) { in HasRemoveNodeExternalDependents()
Dgraph_view.cc856 void MutableGraphView::ReplaceNodeFanouts(MutableNodeView* node, T* fanouts) { in ReplaceNodeFanouts() argument
857 node->num_regular_fanouts_ = fanouts->num_regular_fanouts_; in ReplaceNodeFanouts()
858 node->regular_fanouts_by_port_ = std::move(fanouts->regular_fanouts_by_port_); in ReplaceNodeFanouts()
876 node->controlled_fanouts_ = std::move(fanouts->controlled_fanouts_); in ReplaceNodeFanouts()
918 auto& fanouts = fanouts_it->second; in FixRenamedNodes() local
919 ReplaceNodeFanouts(&renamed_node, &fanouts); in FixRenamedNodes()
974 NodeViewFanouts& fanouts = it->second; in AddNewNodes() local
975 ReplaceNodeFanouts(&new_node_view, &fanouts); in AddNewNodes()
1025 auto& fanouts = fanin_node_view->regular_fanouts_by_port_[fanin.index()]; in RemoveRegularFaninFanoutInternal() local
1026 int fanouts_size = fanouts.size(); in RemoveRegularFaninFanoutInternal()
[all …]
Dgraph_view.h480 void ReplaceNodeFanouts(MutableNodeView* node, T* fanouts);
Dgraph_view_test.cc461 absl::flat_hash_set<FaninViewType> fanouts(d_fanouts[i].begin(), in TYPED_TEST() local
463 EXPECT_TRUE(fanouts.contains( in TYPED_TEST()
465 EXPECT_TRUE(fanouts.contains( in TYPED_TEST()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dstatic_schedule.cc81 std::unordered_map<const NodeDef*, std::vector<const NodeDef*>> fanouts; in EstimateEarliestExecutionTimes() local
91 fanouts[fanin].push_back(&node); in EstimateEarliestExecutionTimes()
114 for (const NodeDef* fanout : fanouts[node]) { in EstimateEarliestExecutionTimes()
Dcommon_subgraph_elimination.cc221 const auto fanouts = node_map.GetOutputs(node->name()); in DedupComputations() local
222 for (NodeDef* fanout : fanouts) { in DedupComputations()
Dimplementation_selector.cc355 for (const auto& fanouts : node_view->GetRegularFanouts()) { in SelectDeviceIndex() local
356 for (const auto& fanout : fanouts) { in SelectDeviceIndex()
Dloop_optimizer.cc468 std::vector<int> fanouts; in GetStackPushNodesToConvert() local
475 fanouts.push_back(idx.value()); in GetStackPushNodesToConvert()
478 for (int fanout_idx : fanouts) { in GetStackPushNodesToConvert()
Dconstant_folding.cc512 auto fanouts = node_map_->GetOutputs(shape_n_node->name()); in MaterializeShapes() local
515 for (NodeDef* output : fanouts) { in MaterializeShapes()
2646 const auto& fanouts = node_map_->GetOutputs(node->name()); in SimplifySwitch() local
2647 if (fanouts.size() == 2) { in SimplifySwitch()
2648 for (const NodeDef* fanout : fanouts) { in SimplifySwitch()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dauto_shard.cc501 auto fanouts = graph->GetFanouts(*flat_map_node, false); in RecursivelyHandleOp() local
503 if (fanouts.size() == 1) { in RecursivelyHandleOp()
504 return ProcessDatasetSourceNode(graph, *fanouts.begin()->node, in RecursivelyHandleOp()