maybe i did not explain well what i want to do
im mean that i wanna have a weight for every loss like this :
 losses = W1 *  [embedding_criterion(output, labels)[0] for output in triplet_y] + \
                W2 *  [xent_criterion(output, labels) for output in softmax_y] 

but this is not working, it generates an error