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

Method Init

oneflow/core/operator/operator.cpp:63–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61Operator::Operator() : device_type_(DeviceType::kInvalidDevice) {}
62
63Maybe<void> Operator::Init(const OperatorConf& op_conf) {
64 return Init(std::make_shared<const OperatorConf>(op_conf));
65}
66
67Maybe<void> Operator::Init(std::shared_ptr<const OperatorConf> op_conf) {
68 op_conf_ = std::move(op_conf);

Callers 1

CheckAndConstructOpFunction · 0.45

Calls 5

DeviceType4DeviceTagFunction · 0.85
InitFunction · 0.50
ReserveMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected