@jpeg729 I get the same error:
Traceback (most recent call last):

File "<ipython-input-148-3ebf3de49d3a>", line 84, in <module>
train_acc += (pred == labels.long()).sum()

File "/usr/local/lib/python3.6/site-packages/torch/tensor.py", line 348, in __eq__
return self.eq(other)

TypeError: eq received an invalid combination of arguments - got (Variable), but expected one of:
* (int value)
  didn't match because some of the arguments have invalid types: (!Variable!)
* (torch.LongTensor other)
  didn't match because some of the arguments have invalid types: (!Variable!)