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

Method reset

tools/train/source/data/DataLoader.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void DataLoader::reset() {
91 clean();
92
93 if (mConfig->numWorkers > 0) {
94 prefetch(mConfig->numJobs);
95 for (int i = 0; i < mConfig->numWorkers; i++) {
96 mWorkers.emplace_back([&] { workerThread(); });
97 }
98 }
99}
100
101void DataLoader::clean() {
102 if (mJobs != nullptr) {

Callers 15

cleanMethod · 0.45
createMethod · 0.45
convertImageMethod · 0.45
MnistV2Method · 0.45
MnistInt8Method · 0.45
runMethod · 0.45
runMethod · 0.45
trainMethod · 0.45
_testFunction · 0.45
_trainFunction · 0.45
_testFunction · 0.45
_trainFunction · 0.45

Calls 1

prefetchFunction · 0.85

Tested by

no test coverage detected