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