Here you go:
train.py:129: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  target = torch.tensor(data[1:])
Traceback (most recent call last):
  File "train.py", line 149, in <module>
    train(epoch)
  File "train.py", line 137, in train
    output = torch.tensor(output)
ValueError: only one element tensors can be converted to Python scalars