oneflow.nn.functional.smooth_l1_loss¶
-
oneflow.nn.functional.
smooth_l1_loss
(input: Tensor, target: Tensor, size_average: bool = True, reduce: bool = True, reduction: str = 'mean', beta: float = 1.0) → Tensor¶ Function that uses a squared term if the absolute element-wise error falls below beta and an L1 term otherwise.
See
SmoothL1Loss
for details.