oa::FnDataset::collate
Collate a span of samples into a single batch. Returns an empty batch when samples are empty, inconsistent, or cannot be represented with a leading batch dimension.
Function Documentation
Collate a span of samples into a single batch. Returns an empty batch when samples are empty, inconsistent, or cannot be represented with a leading batch dimension.
Parameters
inSamplesoa::Span<const Dataset::Sample>—
Returns
BatchThe declared return value.