Skip to main content

ClikaRT::nn::Threshold

class

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

Keeps every element above threshold and replaces the rest with value. The module form of ClikaRT::ops::threshold, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Threshold(ThresholdOptions)​

explicit Threshold(ThresholdOptions options)

Constructs the module from options.

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

Threshold(double, double)​

explicit Threshold(double threshold, double value)

Threshold(threshold, value): the positional form of ThresholdOptions(threshold, value).

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

forward()​

Tensor forward(Tensor input) const

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

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const ThresholdOptions& options() const

The settings this module was constructed with.

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