only one element tensors can be converted to Python scalars while doing PCA for fashion mnist data after selecting 2 classes

后端 未结 0 1427
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 16:57

\'\'\'

# Selecting classes 0 and 8
idx = (trainset.targets==0) | (trainset.targets==8)
trainset.targets = trainset.targets[idx]
trainset.data = trainset.data[         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题