Skip to main content

ClikaRT::nn::Dropout

class

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

The inference form of dropout: the input passes through unchanged. The runtime serves trained models, where dropout is disabled, so no element is dropped and nothing is rescaled; p is kept so the module reads and exports like the layer it stands for.

Member functions​

Dropout(DropoutOptions)​

explicit Dropout(DropoutOptions options = {})

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

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

Dropout(double)​

explicit Dropout(double p)

Dropout(p): the positional form of DropoutOptions(p).

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

forward()​

Tensor forward(Tensor input) const

forward_impl, unwrapped (it cannot fail).

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

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

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

options()​

const DropoutOptions& options() const

The settings this module was constructed with.

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