Skip to main content

ClikaRT::nn::Div

class

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

Divides input by other elementwise with broadcasting, with an optional quotient rounding and fused activation. The module form of ClikaRT::ops::div, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Div()​

explicit Div(DivOptions options = {})

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

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

forward()​

Tensor forward(Tensor input, ScalarOrTensor other) const

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

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

operator()()​

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

Same as forward.

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

options()​

const DivOptions& options() const

The settings this module was constructed with.

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