I don’t know why a torch.cuda.FloatTensor changed to a ‘DataLoader’ object .And when i train the net,the trace is:
Traceback (most recent call last):
  File "/home/zhanafeng/PycharmProjects/CollaborativeDeepLearning/main.py", line 147, in <module>
    num_items,num_voca,itr,dipen_activation,pretrain_input,args)
  File "/home/zhanafeng/PycharmProjects/CollaborativeDeepLearning/SDAE.py", line 101, in pretrain
    Encoder,Decoder = model(train_loader)
  File "/home/zhanafeng/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/zhanafeng/PycharmProjects/CollaborativeDeepLearning/SDAE.py", line 36, in forward
    Encoder = F.sigmoid(self.fc1(x))
  File "/home/zhanafeng/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/zhanafeng/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 55, in forward
    return F.linear(input, self.weight, self.bias)
  File "/home/zhanafeng/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py", line 1022, in linear
    if input.dim() == 2 and bias is not None:
AttributeError: 'DataLoader' object has no attribute 'dim'