hello,
how can i introduce weights to my final loss and how can i learn the best weight?
def criterion(triplet_y, softmax_y, labels):
    losses = [embedding_criterion(output, labels)[0] for output in triplet_y] + \
                 [xent_criterion(output, labels) for output in softmax_y] 
    loss = sum(losses)
    return loss