MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ReadOne

Method ReadOne

dali/operators/reader/loader/loader.h:220–222  ·  view source on GitHub ↗

Get a random read sample

Source from the content-addressed store, hash-verified

218
219 // Get a random read sample
220 LoadTargetSharedPtr ReadOne(bool is_new_batch, bool is_end_of_batch) {
221 return ReadOne(is_new_batch, is_end_of_batch, [](Index i){ return true; });
222 }
223
224 // Reads one sample if its index (total_read_sample_counter_) matches the provided filter.
225 // Otherwise, uses `Skip` instead of `ReadSample` to skip the sample.

Callers 2

PrefetchMethod · 0.45
TYPED_TESTFunction · 0.45

Calls 9

filterClass · 0.85
swapFunction · 0.85
SkipFunction · 0.70
push_backMethod · 0.45
backMethod · 0.45
frontMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45
pop_backMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.36