Module ai_dataloader::collate
source · Expand description
Merges a list of samples to form a batch.
Structs
- Default Collate function that mimic the
default_collatefunction fromPyTorch. - Simple Collate that doesn’t change the batch of samples.
- TorchCollate
tchTorch Collate function that mimic thedefault_collatefunction fromPyTorch.
Traits
- Any collate gather samples from one batch together.