Skip to main content

ClikaRT::nn::HuberLoss

class

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

Half the squared error below delta, a linear penalty above it, between input and target. The module form of ClikaRT::ops::huber_loss, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

HuberLoss()​

explicit HuberLoss(HuberLossOptions options = {})

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

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

forward()​

Tensor forward(Tensor input, Tensor target) const

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

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

operator()()​

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

Same as forward.

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

options()​

const HuberLossOptions& options() const

The settings this module was constructed with.

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