MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / size

Method size

src/opr/impl/training/dataview.cpp:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59size_t DataLoader::size() {
60 return m_dataview->size() / m_batchsize;
61}
62
63DataPair DataLoader::next() {
64 if (m_idx == 0 && m_shuffle) {

Callers 15

workMethod · 0.45
add_workerMethod · 0.45
group_barrierMethod · 0.45
chk_shape_equalMethod · 0.45
get_output_var_shapeMethod · 0.45
execMethod · 0.45
CollectiveCommMethod · 0.45
init_output_mem_planMethod · 0.45
do_executeMethod · 0.45

Calls

no outgoing calls

Tested by 15

make_one_condFunction · 0.36
merge_one_outFunction · 0.36
check_waiting_specFunction · 0.36
alloc_dynamicMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
check_async_errorFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
test_fastrun_oprFunction · 0.36