Given a NumPy array:
array = np.random.randn(1,1,2)
print(array.shape)
# (1, 1, 2)
calling tuple() on it eats the first dimension:
tupled_array = tuple(array)
print(tupled_array[0].shape)
# (1, 2) <- why?
I am curious about why?
If we wrap the NumPy array with a list:
tupled_list_array = tuple([array])
print(tupled_list_array[0].shape)
# (1, 1, 2)