flash.core.data.batch.default_uncollate¶
- flash.core.data.batch.default_uncollate(batch)[source]¶
This function is used to uncollate a batch into samples. The following conditions are used:
if the
batchis adict, the result will be a list of dictsif the
batchis list-like, the result is guaranteed to be a list
- Parameters
- Return type
- Returns
The uncollated list of predictions.
- Raises
ValueError – If the input is a
dictwhose values are not all list-like.ValueError – If the input is a
dictwhose values are not all the same length.ValueError – If the input is not a
dictor list-like.