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

Method FindEdgeWithNode

oneflow/core/auto_parallel/sbp_node.cpp:839–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839SbpEdge* SbpNode::FindEdgeWithNode(const SbpNode* other_node) const {
840 for (auto* sbp_edge : edges_in_) {
841 if (sbp_edge->start_node_ == other_node) { return sbp_edge; }
842 }
843 for (auto* sbp_edge : edges_out_) {
844 if (sbp_edge->end_node_ == other_node) { return sbp_edge; }
845 }
846 return nullptr;
847};
848
849// Decide to use this SbpSignature
850const NdSbpSignature& SbpNode::FinalSbpSignature() const {

Callers 3

ProxySbpCandidateMethod · 0.80
LoadLbi2SbpEdgeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected