How to reshape a 4 dimensional Numpy array into different dimensions?
np.squeeze will collapse all the dimensions having length 1, or you can use the reshape function
I have a 4 dimensional Numpy array, of (8, 1, 1, 102). Now, for instance, I simply want to ignore the middle two dimensions and have an array of shape (8,102), what may be the suitable way to accomplish this?