ClikaRT::ops::smooth_l1_loss
function
smooth_l1_loss()
Tensor smooth_l1_loss(
Tensor input,
Tensor target,
Reduction reduction = Reduction::Mean,
double beta = 1.0
)
Smooth-L1 loss: quadratic within beta of zero, L1 beyond it.
beta == 0 degenerates to plain L1.
Parameters
input: predictions; float dtype.target: ground truth; same shape asinput.reduction:None/Mean/Sum; defaultMean.beta: the L2-to-L1 knee; default 1.0.
Returns: the loss (0-D under Mean/Sum).
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on an input/target shape mismatch.
Declared in ClikaRT/compute/ops.h, line 3036