Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
84
Index 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
ShouldPadBatch
Method · 0.70
Size
Method · 0.70
TEST
Function · 0.50
Calls
1
ceil
Function · 0.50
Tested by
1
TEST
Function · 0.40