Warning (from warnings module):
File “C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\loss.py”, line 431
return F.mse_loss(input, target, reduction=self.reduction)
UserWarning: Using a target size (torch.Size([100, 360, 360])) that is different to the input size (torch.Size([100, 2])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.
0%|          | 0/4 [00:00<?, ?it/s]
Traceback (most recent call last):
File “C:/Users/Asus/Desktop/Neural Networks/Pytorch.py”, line 115, in 
loss = loss_function(outputs, batch_y)
File “C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\module.py”, line 547, in call
result = self.forward(*input, **kwargs)
File “C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\loss.py”, line 431, in forward
return F.mse_loss(input, target, reduction=self.reduction)
File “C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\functional.py”, line 2189, in mse_loss
expanded_input, expanded_target = torch.broadcast_tensors(input, target)
File “C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\functional.py”, line 53, in broadcast_tensors
return torch._C._VariableFunctions.broadcast_tensors(tensors)
RuntimeError: The size of tensor a (2) must match the size of tensor b (360) at non-singleton dimension 2