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

Function ValidateNumSamples

dali/c_api_2/validation.h:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62inline void ValidateNumSamples(int num_samples) {
63 if (num_samples < 0)
64 throw std::invalid_argument("The number of samples must not be negative.");
65}
66
67inline void ValidateNDim(int ndim) {
68 if (ndim < 0)

Callers 2

ValidateShapeFunction · 0.85
AttachSamplesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected