Skip to main content

ClikaRT::ops::mish

function

mish()

Tensor mish(Tensor x)

Mish activation.

mish(x)=xtanh ⁣(softplus(x))\mathrm{mish}(x) = x\,\tanh\!\bigl(\mathrm{softplus}(x)\bigr)

Throws

  • ClikaRT::Error: when the input's dtype is not served for this operation (the machine-readable reason rides code_name()).

Returns: a new tensor, same shape and dtype as x.

auto y = ClikaRT::ops::mish(x);

Declared in ClikaRT/compute/ops.h, line 932