Deep Learning, Machine Learning, Artificial Intelligence, Loss Function, Neural Networks.
is an array of predicted logits for each sample. The function uses PyTorch's F.cross_entropy function to calculate the loss. The y_pred tensor should have shape (N, C) where N is the number of samples and C is the number of classes. Dice Loss Dice loss, also known as the Sørensen–Dice coefficient