Skip to main content

ClikaRT::nn::LeakyReLU

class

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

ReLU with a small slope on the negative side: input for input > 0, negative_slope * input otherwise. The module form of ClikaRT::ops::leaky_relu, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

LeakyReLU()​

explicit LeakyReLU(LeakyReLUOptions options = {})

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

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const LeakyReLUOptions& options() const

The settings this module was constructed with.

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