Skip to main content

ClikaRT::nn::Pow

class

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

Raises input to exponent elementwise with broadcasting. The module form of ClikaRT::ops::pow, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Pow()​

explicit Pow(PowOptions options = {})

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

Declared in ClikaRT/nn/generated/elementwise.h, line 272

forward()​

Tensor forward(Tensor input, ScalarOrTensor exponent) const

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

Declared in ClikaRT/nn/generated/elementwise.h, line 284

operator()()​

Tensor operator()(Tensor input, ScalarOrTensor exponent) const

Same as forward.

Declared in ClikaRT/nn/generated/elementwise.h, line 288

options()​

const PowOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/elementwise.h, line 292