Hi
Suppose I have too many losses that need to be added together and I don’t want to do it in the normal way, i.e. L = l1 + l2...
Can I do something like:
loss = torch.autograd.Variable(torch.FloatTensor([0])).cuda()
for i in range(num):
    loss += l[i]

Is this the correct way to do it?
Many Thanks