Skip to main content

ClikaRT::nn::SmoothL1LossOptions

struct

Header: ClikaRT/nn/generated/loss.h

Settings of SmoothL1Loss: chain the setters, or assign the fields.

Member functions​

reduction(ops::Reduction)​

Sets reduction, how the elementwise losses reduce.

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

reduction()​

ops::Reduction reduction() const

Reads reduction.

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

beta(double)​

SmoothL1LossOptions& beta(double v)

Sets beta, the switch point between the quadratic and the linear regime.

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

beta()​

double beta() const

Reads beta.

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

Data members​

reduction_​

How the elementwise losses reduce. Default ops::Reduction::Mean.

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

beta_​

double beta_ = 1.0

The switch point between the quadratic and the linear regime. Default 1.0.

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