Skip to main content

ClikaRT::ops::sigmoid

function

sigmoid()​

Tensor sigmoid(Tensor input)

Logistic sigmoid.

σ(x)=11+e−x\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 input.

auto p = ClikaRT::ops::sigmoid(logits);

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