import numpy as np
a = np.zeros([2,3])
an = a[np.newaxis,:]
print(a.shape)
print(an.shape)
a = np.zeros([2,3])
an = a[np.newaxis,:]
print(a.shape)
print(an.shape)
7851
2831
1116

被折叠的 条评论
为什么被折叠?