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

Method GetSoleRegst

oneflow/core/graph/task_node.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418std::shared_ptr<RegstDesc> TaskEdge::GetSoleRegst() const {
419 CHECK_EQ(name_in_producer2regst_.size(), 1)
420 << "edge: " << this << ", src: " << src_node()->task_id()
421 << ", dst: " << dst_node()->task_id();
422 return name_in_producer2regst_.begin()->second;
423}
424
425std::vector<std::shared_ptr<RegstDesc>> TaskEdge::GetRegsts() const {
426 std::vector<std::shared_ptr<RegstDesc>> regst_descs;

Callers 15

ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80
ConsumeAllRegstsMethod · 0.80

Calls 3

sizeMethod · 0.45
task_idMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected