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

Method size

tools/train/source/data/DataLoader.cpp:111–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 mSampler->reset(mSampler->size());
110}
111size_t DataLoader::size() const {
112 return mDataset->size();
113}
114size_t DataLoader::iterNumber() const {
115 auto number = mDataset->size();
116 auto batch = mConfig->batchSize;

Callers 15

isFullMethod · 0.45
clearMethod · 0.45
sizeFunction · 0.45
getBatchFunction · 0.45
transformBatchFunction · 0.45
nextMethod · 0.45
prefetchMethod · 0.45
workerThreadMethod · 0.45
cleanMethod · 0.45
iterNumberMethod · 0.45
makeDataLoaderMethod · 0.45
transformBatchFunction · 0.45

Calls

no outgoing calls

Tested by 6

runMethod · 0.36
runMethod · 0.36
runMethod · 0.36
runMethod · 0.36
runMethod · 0.36
runMethod · 0.36