cerebras.modelzoo.common.utils.model.transformer_utils.smooth_loss#

cerebras.modelzoo.common.utils.model.transformer_utils.smooth_loss(prediction_scores, loss, label_smoothing, classes)[source]#

Add label smoothing to loss function, this is a workaround method of label smoothing in our system.