code_2.py 187 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2
print ("数据集张量形状:", X_train_image.shape) #用shape方法显示张量的形状
print ("第一个数据样本:\n", X_train_image[0]) #注意Python的索引是从0开始的