Hello  Everyone,
I have a model which has to predict 2 things, and therefore My output is of shape [batch, 2]. My Target too, is of shape [batch, 2]. I calculate the loss as follows -
    dCoordinates = torch.abs(output - coordinates)
    loss = torch.sum(dCoordinates, 1)

Therefore loss is of shape [batch]. How do I propagate this loss backward?
TIA