ONE - On-device Neural Engine
|
Public Member Functions | |
None | __init__ (self, Literal["mean", "sum"] reduction="mean") |
None package.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 package.experimental.train.losses.cce.CategoricalCrossentropy, and package.experimental.train.losses.mse.MeanSquaredError.
Definition at line 9 of file loss.py.