flash.core.data.utilities.collate.default_collate¶
- flash.core.data.utilities.collate.default_collate(batch)[source]¶
The
flash.data.utilities.collate.default_collate()
extends torch.utils.data._utils.default_collate to first extract any metadata from the samples in the batch (in the"metadata"
key). The list of metadata entries will then be inserted into the collated result.