| 61 | } |
| 62 | |
| 63 | void ExecNode::ToProto(const ParallelContext* parallel_ctx, ExecNodeProto* ret) const { |
| 64 | op_->GenKernelConf(GetBlobDesc4BnInOpFunc(), parallel_ctx, ret->mutable_kernel_conf()); |
| 65 | for (const auto& bn_regst : bn_in_op2regst_) { |
| 66 | const std::string& bn_in_op = bn_regst.first; |
| 67 | auto regst = bn_regst.second; |
| 68 | CHECK(regst); |
| 69 | PbMapPair<std::string, int64_t> pair{bn_in_op, regst->regst_desc_id()}; |
| 70 | CHECK(ret->mutable_bn_in_op2regst_desc_id()->insert(pair).second); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | namespace { |
| 75 |
no test coverage detected