for i in range(20):
       ......
    loss = criterion(scores, labels) 
    torch.save(loss,'loss'+i+'.pt')

this is what you are talking about? each file will be saved with a different name. i understood your question like this. or you want to append all the losses into a single tensor and then save it?
with torch.save(Tensor) you can save tensors