How to apply transformation to tensor from compose in pyTorch

后端 未结 0 384
心在旅途
心在旅途 2020-11-29 05:28

I want to Normalize the MNIST dataset with pyTorch. The code I was given to load the dataset is:

mnist_train = datasets.MNIST(data_dir, download=True, train=T         


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