I have a array which has this output and your type is cupy.ndarray:
x = array([[0],
[0],
[0],
...,
[0],
[0],
[0]])
I want is output:
array([0, 0, 0, ..., 0, 0, 0])
I tried use transpose and np.expand_dims and had the outputs:
x.transpose()
# Output
array([[0, 0, 0, ..., 0, 0, 0]])
np.expand_dims(x, axis=1)
#Output
array([[[0, 0, 0, ..., 0, 0, 0]]])