Steffen Illium 7edd3834a1 Dataset rdy
2021-02-16 10:18:04 +01:00

9 lines
164 B
Python

from torch import nn
class LossMixin:
absolute_loss = nn.L1Loss()
nll_loss = nn.NLLLoss()
bce_loss = nn.BCELoss()
ce_loss = nn.CrossEntropyLoss()