loss_weight is the loss weight for the 'EuclideanLoss' layer output. midnet_loss_weight is the loss weight for the first 'InnerProduct' layer output. Should both default to 0.0 if unspecified (i.e., if NULL is passed to this function).
source not stored for this graph (policy: none)