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