Skip to main content

ClikaRT::ops::sigmoid

function

sigmoid()

Tensor sigmoid(Tensor x)

Logistic sigmoid.

σ(x)=11+ex\sigma(x) = \frac{1}{1 + e^{-x}}

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 p = ClikaRT::ops::sigmoid(logits);

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