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

Function num_samples

dali/operators/reader/loader/loader.cc:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84Index num_samples(const size_t shard_num,
85 const size_t size) {
86 return static_cast<Index>(std::ceil(size * 1.0 / shard_num));
87}
88
89} // namespace dali

Callers 3

ShouldPadBatchMethod · 0.70
SizeMethod · 0.70
TESTFunction · 0.50

Calls 1

ceilFunction · 0.50

Tested by 1

TESTFunction · 0.40