Linear regression in PyTorch