collate_tuple

lightkit.data.collate_tuple(batch)[source]

Collate a tuple of batch items by returning the input tuple.

This is the default used by DataLoader when slices are cut from the underlying data source.

Return type

Tuple[Tensor, ...]