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

Method OpNode

oneflow/core/graph/op_graph.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83OpNode::OpNode(Symbol<ParallelDesc> parallel_desc, const OperatorConf& op_conf)
84 : parallel_desc_(parallel_desc),
85 op_(CHECK_JUST(ConstructOp(op_conf, parallel_desc->device_type()))),
86 ibns_(op_->input_bns().begin(), op_->input_bns().end()) {
87 CHECK_JUST(op_->FillOpParallelDesc(parallel_desc.shared_from_symbol()));
88}
89
90std::string OpNode::VisualStr() const {
91 std::string str = op().op_name();

Callers

nothing calls this directly

Calls 5

ConstructOpFunction · 0.85
FillOpParallelDescMethod · 0.80
device_typeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected