| 81 | } |
| 82 | |
| 83 | OpNode::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 | |
| 90 | std::string OpNode::VisualStr() const { |
| 91 | std::string str = op().op_name(); |
nothing calls this directly
no test coverage detected