data¶
Functions
Unpack a batch to find a |
|
Checks if a given object has |
- lightning.pytorch.utilities.data.extract_batch_size(batch)¶
Unpack a batch to find a
torch.Tensor.- Return type:
- Returns:
len(tensor)when found, or1when it hits an empty or non iterable.