Skip to main content

ClikaRT::nn::ELU

class

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

Exponential linear unit: scale * input for input > 0, scale * alpha * (exp(input_scale * input) - 1) otherwise. The module form of ClikaRT::ops::elu, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

ELU(ELUOptions)​

explicit ELU(ELUOptions options = {})

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

Declared in ClikaRT/nn/generated/activation.h, line 191

ELU(double)​

explicit ELU(double alpha)

ELU(alpha): the positional form of ELUOptions(alpha).

Declared in ClikaRT/nn/generated/activation.h, line 193

forward()​

Tensor forward(Tensor input) const

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

Declared in ClikaRT/nn/generated/activation.h, line 205

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/generated/activation.h, line 209

options()​

const ELUOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/activation.h, line 213