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

Method clone

express/module/WhileModule.cpp:269–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269Module* WhileModule::clone(CloneContext* ctx) const {
270 WhileModule* module(new WhileModule);
271 module->mInfo = mInfo;
272 if (nullptr != mCond.get()) {
273 module->mCond.reset(mCond->clone(ctx));
274 module->registerModel({module->mCond});
275 }
276 module->mBody.reset(mBody->clone(ctx));
277 module->registerModel({module->mBody});
278 return this->cloneBaseTo(ctx, module);
279}
280
281};
282};

Callers

nothing calls this directly

Calls 4

registerModelMethod · 0.80
cloneBaseToMethod · 0.80
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected