DataLoader为我们提供了对Dataset的读取操作,常用参数有:batch_size(每个batch的大小), shuffle(是否进行shuffle操作), num_workers(加载数据的时候使用几个子进程)
--即我们可以使用DataLoader来对自己的数据进行操作
https://www.cnblogs.com/JeasonIsCoding/p/10164948.html
https://github.com/zergtant/pytorch-handbook/blob/master/chapter2/2.1.2-pytorch-basics-autograd.ipynb
a=torch.rand(3,3,requires_grad=True)
b=MulConstant.apply(a,5)