How can I calculate the loss (and get a scalar) between two FloatTensors of different size? For example, let’s assume that one FloatTensor is 115x5 and the other is 5x5. How can one get the loss between those two?
I’m doing:
 loss = (y_predicted - y).pow(2).sum()

but of course it gives an error as the dimensions are different.