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

Method clean

tools/train/source/data/DataLoader.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void DataLoader::clean() {
102 if (mJobs != nullptr) {
103 join();
104 mWorkers.clear();
105 mJobs->clear();
106 mDataQueue->clear();
107 }
108 // should reset sampler before prefetch
109 mSampler->reset(mSampler->size());
110}
111size_t DataLoader::size() const {
112 return mDataset->size();
113}

Callers 2

runMethod · 0.45
jquery.jsFile · 0.45

Calls 4

joinFunction · 0.50
clearMethod · 0.45
resetMethod · 0.45
sizeMethod · 0.45

Tested by 1

runMethod · 0.36