# 代码1和代码2得到的结果是一样的,功能一致
# features:(8325,62,5)
# 代码1
feat_array_temp = np.transpose(features, (2, 0, 1)) # 5, 8325, 62 ndarray
# 代码2
feat_array_temp2 = []
for i in range(5):
feat_array_temp2.append(features[:, :, i])
feat_array_temp2 = np.array(feat_array_temp2) # 5, 8325, 62 ndarray
# 最后的结果:feat_array_temp2==feat_array_temp
标签:features,transpose,temp2,62,8325,np,array,解析,feat
From: https://blog.51cto.com/u_13946099/6236735