Skip to main content

Tanh

Tanh()

Elementwise hyperbolic tangent.

The module form of ``clika_runtime.nn.functional.tanh``: construct it once,
then call it like a function.

__init__​

__init__(self) -> 'None'

Initialize self. See help(type(self)) for accurate signature.

forward​

forward(self, input: 'Tensor') -> 'Tensor'

forward(input) -> Tensor

Runs clika_runtime.nn.functional.tanh on input; returns a new tensor.