MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / ForEachNodeOnInEdge

Method ForEachNodeOnInEdge

oneflow/core/graph/node.h:95–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 const std::unordered_set<EdgeType*>& out_edges() const { return out_edges_; }
94
95 void ForEachNodeOnInEdge(std::function<void(NodeType*)> Handler) const {
96 for (EdgeType* edge : in_edges_) { Handler(edge->src_node()); }
97 }
98 void ForEachNodeOnOutEdge(std::function<void(NodeType*)> Handler) const {
99 for (EdgeType* edge : out_edges_) { Handler(edge->dst_node()); }
100 }

Callers 8

InitInOutTopoStructsFunction · 0.80
ApplyMethod · 0.80
ApplyMethod · 0.80
MaxProducerMinLayerFunction · 0.80
SpreadTributaryLayerMethod · 0.80
SpreadTrunkMethod · 0.80

Calls 1

src_nodeMethod · 0.80

Tested by

no test coverage detected