Skip to main content

ClikaRT::nn::L1Loss

class

Header: ClikaRT/nn/generated/loss.h
Inherits: ClikaRT::nn::Module

Mean absolute error between input and target. The module form of ClikaRT::ops::l1_loss, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

L1Loss()​

explicit L1Loss(L1LossOptions options = {})

Constructs the module from options (every default when omitted).

Declared in ClikaRT/nn/generated/loss.h, line 97

forward()​

Tensor forward(Tensor input, Tensor target) const

forward_impl, unwrapped: raises ClikaRT::Error on failure.

Declared in ClikaRT/nn/generated/loss.h, line 109

operator()()​

Tensor operator()(Tensor input, Tensor target) const

Same as forward.

Declared in ClikaRT/nn/generated/loss.h, line 113

options()​

const L1LossOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/loss.h, line 117