Loss¶
- class
dragon.vm.tensorflow.keras.losses.
Loss
(
reduction='mean',
name=None
)[source]¶ The base class for loss criterion.
__init__¶
Methods¶
__call__¶
Loss.
__call__
(
y_true,
y_pred
)[source]¶Compute the defined loss function.
- Parameters:
- y_true (dragon.Tensor) – The ground-truth tensor.
- y_pred (dragon.Tensor) – The logits tensor.
- Returns:
dragon.Tensor – The loss.