MCPcopy Create free account
hub / github.com/alibaba/MNN / clone

Method clone

tools/train/source/nn/NN.cpp:310–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 ConvModule() = default;
309
310 Module* clone(CloneContext* ctx) const override {
311 ConvModule* module(new ConvModule);
312 module->mParameter = mParameter;
313 module->mParameter.weight = (mParameter.weight);
314 module->mParameter.bias = (mParameter.bias);
315 return this->cloneBaseTo(ctx, module);
316 }
317
318 NN::ConvParameters mParameter;
319};

Callers 12

cloneMethod · 0.45
_optimize_weightsMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
dit_forwardMethod · 0.45
forwardMethod · 0.45
_compute_best_scaleMethod · 0.45
_compute_best_clipMethod · 0.45
compute_pleMethod · 0.45
forwardMethod · 0.45

Calls 1

cloneBaseToMethod · 0.80

Tested by

no test coverage detected