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

Method ToProto

oneflow/core/graph/exec_graph.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
74namespace {
75

Callers 1

ToExecSequenceMethod · 0.45

Calls 3

GenKernelConfMethod · 0.80
insertMethod · 0.80
regst_desc_idMethod · 0.45

Tested by

no test coverage detected