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

Method GetComponentSbpId

oneflow/core/auto_parallel/sbp_node.cpp:855–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853};
854
855int32_t SbpNode::GetComponentSbpId(int32_t merged_id, SbpNode* component_node) const {
856 if (this == component_node) { return merged_id; }
857 CHECK(!component2merged_sig_id2component_sig_id_.empty())
858 << "Check the component before initialization!" << std::endl;
859 return component2merged_sig_id2component_sig_id_.at(component_node).at(merged_id);
860}
861
862// Judge if sbp_node is a port of the current node
863bool SbpNode::IsComponent(SbpNode* sbp_node) const {

Callers 1

SummarizeCostMethod · 0.80

Calls 2

emptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected