i ment to tensor, not list, im sorry
the question actually was:
when i write my own loss function (the one up here), and the loss gets a tensor of predictions and labels each time, should i sum all the distances?

final_loss = loss(PRED1,LABEL1)+loss(PRED2,LABEL2)+…+loss(PREDn,LABELn)
final_loss.backward()
@ptrblck