When you define the loss function has MSE,
i.e.,

cost_func = nn.MSELoss()

and then you want to compute the loss using
loss = cost_func(predicted_labels, training_labels)
Would it be an issue if my predicted_labels tensor size is torch.Size([1500, 1, 1]) and the training_labels size is torch.Size([1500])?