ClikaRT::ops::l1_loss
function
l1_loss()
Tensor l1_loss(
Tensor input,
Tensor target,
Reduction reduction = Reduction::Mean
)
Mean-absolute-error loss between input and target.
Parameters
input: predictions; float dtype.target: ground truth; same shape asinput.reduction:None/Mean/Sum; defaultMean.
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 2984