Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc266 Status CheckFaninIsRegular(const TensorId& fanin, ErrorHandler handler) { in CheckFaninIsRegular() argument
267 if (!IsTensorIdRegular(fanin)) { in CheckFaninIsRegular()
269 fanin.ToString())); in CheckFaninIsRegular()
274 Status CheckFaninIsValid(const TensorId& fanin, ErrorHandler handler) { in CheckFaninIsValid() argument
275 if (!IsTensorIdPortValid(fanin)) { in CheckFaninIsValid()
277 fanin.ToString())); in CheckFaninIsValid()
283 const TensorId& fanin, ErrorHandler handler) { in CheckAddingFaninToSelf() argument
284 if (node_name == fanin.node()) { in CheckAddingFaninToSelf()
286 absl::Substitute("can't add fanin '$0' to self", fanin.ToString())); in CheckAddingFaninToSelf()
292 const TensorId& fanin, ErrorHandler handler) { in CheckRemovingFaninFromSelf() argument
[all …]
Dmutable_graph_view.h141 Status AddRegularFanin(absl::string_view node_name, const TensorId& fanin);
152 const TensorId& fanin);
176 const TensorId& fanin);
185 Status RemoveRegularFanin(absl::string_view node_name, const TensorId& fanin);
230 const TensorId& fanin);
262 const OutputPort& fanin,
267 void UpdateMaxRegularOutputPortForAddedFanin(const OutputPort& fanin);
289 bool AddFaninInternal(NodeDef* node, const OutputPort& fanin);
299 const OutputPort& fanin, string* error_msg);
304 NodeDef* GetOrCreateIdentityConsumingSwitch(const OutputPort& fanin);
[all …]
Dgraph_view_test.cc136 GraphView::OutputPort fanin = graph.GetRegularFanin(input); in TEST_F() local
137 EXPECT_EQ(fanin.node->name(), "Square"); in TEST_F()
138 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
143 fanin = graph.GetRegularFanin(input); in TEST_F()
144 EXPECT_EQ(fanin.node->name(), "Square_1"); in TEST_F()
145 EXPECT_EQ(fanin.port_id, 0); in TEST_F()
210 auto fanin = graph.GetFanin(input); in TEST_F() local
211 EXPECT_EQ(fanin.size(), 1); in TEST_F()
212 EXPECT_EQ((*fanin.begin()).node->name(), "a"); in TEST_F()
213 EXPECT_EQ((*fanin.begin()).port_id, -1); in TEST_F()
[all …]
Dmutable_graph_view_test.cc115 for (const auto& fanin : mutable_fanins) { in CheckGraph() local
116 GraphView::OutputPort immutable_fanin(fanin.node, fanin.port_id); in CheckGraph()
1184 void CheckFanoutRemoved(const MutableGraphView& graph, const TensorId& fanin, in CheckFanoutRemoved() argument
1187 graph.GetOutputPort(fanin.node(), fanin.index()); in CheckFanoutRemoved()
1190 EXPECT_NE(fanout.node->name(), fanin.node()); in CheckFanoutRemoved()
1470 for (const string& fanin : fanin_strings) { in TestRemoveAllFanins() local
1471 if (!retained_inputs.contains(fanin)) { in TestRemoveAllFanins()
1472 tensor_id = ParseTensorName(fanin); in TestRemoveAllFanins()
1681 void TestUpdateFaninFromFaninToNodeAsSwitchControl(const TensorId& fanin) { in TestUpdateFaninFromFaninToNodeAsSwitchControl() argument
1682 string tensor_id_str = TensorIdToString(fanin); in TestUpdateFaninFromFaninToNodeAsSwitchControl()
[all …]
Dgraph_view.h182 bool HasFanin(const NodeDefT& node, const TensorId& fanin) const { in HasFanin() argument
184 if (end == 0 || fanin.index() < -1) { in HasFanin()
191 if (fanin.index() > -1) { in HasFanin()
197 if (ParseTensorName(node.input(i)) == fanin) { in HasFanin()
Dgrappler_item.cc70 std::vector<const NodeDef*> fanin = ComputeTransitiveFanin(graph, init_ops); in MainVariables() local
72 for (const NodeDef* node : fanin) { in MainVariables()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dstatic_schedule.cc88 const NodeDef* fanin = it->second; in EstimateEarliestExecutionTimes() local
89 fanouts[fanin].push_back(&node); in EstimateEarliestExecutionTimes()
148 const NodeDef* fanin = it->second; in EstimateRequiredTimes() local
149 pending_fanouts[fanin] += 1; in EstimateRequiredTimes()
176 const NodeDef* fanin = name_map[NodeName(fanin_name)]; in EstimateRequiredTimes() local
177 (*required_times)[fanin] = in EstimateRequiredTimes()
178 std::min((*required_times)[fanin], required_time); in EstimateRequiredTimes()
180 int pending = pending_fanouts[fanin]; in EstimateRequiredTimes()
185 ready_nodes.push_back(fanin); in EstimateRequiredTimes()
187 pending_fanouts[fanin]--; in EstimateRequiredTimes()
Dpin_to_host_optimizer.cc121 for (const auto& fanin : graph.GetFanins(node, false)) { in IsNodeOutputPortHostFriendly() local
124 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeOutputPortHostFriendly()
240 for (const GraphView::OutputPort& fanin : in IsNodeHostCandidate() local
244 graph, properties, *fanin.node, fanin.port_id, &fanin_candidate)); in IsNodeHostCandidate()
Dmemory_optimizer.cc836 for (const string& fanin : input_node->input()) { in FindSwapInTrigger() local
837 string name = NodeName(fanin); in FindSwapInTrigger()
884 MutableGraphView::OutputPort fanin = graph.GetRegularFanin(input); in IsSwappable() local
885 if (fanin.node->device() == node.device()) { in IsSwappable()
886 return IsSwappable(graph, fanin); in IsSwappable()
/external/mesa3d/src/gallium/docs/source/drivers/freedreno/
Dir3-notes.rst166 **fanin**
173 The counterpart to **fanin**, when an instruction such as `sam`
205 fanin;
211 sam -> fanin [label="regs[1]"];
212 fanin -> coord_x [label="regs[1]"];
213 fanin -> coord_y [label="regs[2]"];
220fanin`` meta instruction, which in turn points to the instructions producing the ``coord.x`` and `…
295 …alar registers. This has some overlap with `register groups`_, in that ``fanin`` and ``fanout`` a…
297 …variation of what is done for const array src. The instruction src is a `fanin` instruction that …
315 fanin;
[all …]
/external/tensorflow/tensorflow/python/grappler/
Dcontroller.py42 for fanin in self._get_node_fanin(node):
43 self._fanout[fanin.name].append(node)
68 for fanin in self._get_node_fanin(node):
69 fanout_of_fanin = self.get_node_fanout(fanin)
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc763 const GraphView::OutputPort fanin = graph_.GetRegularFanin(port); in UpdateNode() local
764 int src_output = fanin.port_id; in UpdateNode()
765 const NodeDef* src = fanin.node; in UpdateNode()
1802 for (const GraphView::Edge fanin : shape_refiner->graph().GetFaninEdges( in UpdateMerge() local
1804 InferenceContext* src_ic = shape_refiner->GetContext(fanin.src.node); in UpdateMerge()
1810 ShapeHandle input = src_ic->output(fanin.src.port_id); in UpdateMerge()
1811 ic->SetInput(fanin.dst.port_id, input); in UpdateMerge()
1813 src_ic->output_handle_shapes_and_types(fanin.src.port_id); in UpdateMerge()
1815 ic->set_input_handle_shapes_and_types(fanin.dst.port_id, *input_handle); in UpdateMerge()
1845 GraphView::OutputPort fanin = shape_refiner->graph().GetRegularFanin(port); in UpdateEnter() local
[all …]
/external/tensorflow/tensorflow/core/grappler/utils/
Dtraversal.cc108 for (const int fanin : graph_view.GetFanin(w.node)) { in DfsTraversal() local
109 stack.emplace_back(fanin, false, w.node); in DfsTraversal()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dauto_shard.cc167 for (const auto& fanin : graph->GetFanins(node, true)) { in RemoveShuffleDataset() local
169 RemoveShuffleDataset(graph, *fanin.node, nodes_to_delete)); in RemoveShuffleDataset()