aimz.utils.data.ArrayLoader.pad_array#
- ArrayLoader.pad_array(x, n_pad, axis=0)[source]#
Pad an array to ensure compatibility with sharding.
- Parameters:
- Returns:
The padded array with padding applied along the specified axis.
- Raises:
ValueError – If padding is requested along an unsupported axis for a 1D array.
- Return type:
Array | npt.NDArray