cupy.ndim#
- cupy.ndim(a)[source]#
Returns the number of dimensions of an array.
- Parameters:
a (array-like) – If it is not already an cupy.ndarray, a conversion via
numpy.asarray()
is attempted.- Returns:
The number of dimensions in a.
- Return type:
(int)