Skip to main content

ClikaRT::nn::Identity

class

Header: ClikaRT/nn/containers.h
Inherits: ClikaRT::nn::Module

Returns its input unchanged: it keeps a slot in a container where a module is expected (a skipped normalization, a disabled projection) without changing the data flow.

Member functions​

Identity()​

explicit Identity(IdentityOptions options = {})

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

Declared in ClikaRT/nn/containers.h, line 217

forward()​

Tensor forward(Tensor input) const

forward_impl, unwrapped (it cannot fail).

Declared in ClikaRT/nn/containers.h, line 223

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/containers.h, line 227

options()​

const IdentityOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/containers.h, line 231