cunumeric.squeeze#
- cunumeric.squeeze(a, axis=None)#
Remove single-dimensional entries from the shape of an array.
- Parameters
- Returns
squeezed – The input array, but with all or a subset of the dimensions of length 1 removed. This is always a itself or a view into a.
- Return type
- Raises
ValueError – If axis is not None, and an axis being squeezed is not of length 1
See also
- Availability
Multiple GPUs, Multiple CPUs