dpnp.ndarray.squeeze

ndarray.squeeze(axis=None)

Remove single-dimensional entries from the shape of an array.

Refer to dpnp.squeeze for full documentation