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

Method setIsTraining

express/module/Module.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 return true;
111}
112void Module::setIsTraining(const bool isTraining) {
113 mIsTraining = isTraining;
114 for (auto c : mChildren) {
115 c->setIsTraining(isTraining);
116 }
117}
118
119bool Module::getIsTraining() {
120 return mIsTraining;

Callers 8

_quantizeModelEMAMethod · 0.80
trainMethod · 0.80
_testFunction · 0.80
_trainFunction · 0.80
_testFunction · 0.80
_trainFunction · 0.80
trainMethod · 0.80
PyMNN_Module_trainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected