|
ONE - On-device Neural Engine
|
Public Member Functions | |
| None | __init__ (self, Literal["mean", "sum"] reduction="mean") |
| None onert.experimental.train.losses.loss.LossFunction.__init__ | ( | self, | |
| Literal["mean", "sum"] | reduction = "mean" |
||
| ) |
Initialize the Categorical Cross-Entropy loss function.
Args:
reduction (str): Reduction type ('mean', 'sum').
Reimplemented in onert.experimental.train.losses.cce.CategoricalCrossentropy, and onert.experimental.train.losses.mse.MeanSquaredError.
Definition at line 9 of file loss.py.