Skip to main content

Hardswish

Hardswish()

Piecewise-linear swish approximation: input * clamp(input / 6 + 1 / 2, 0, 1).

The module form of clika_runtime.nn.functional.hardswish: 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.hardswish on input; returns a new tensor.