Skip to main content

ClikaRT::ops::log_sigmoid

function

log_sigmoid()​

Tensor log_sigmoid(Tensor input)

Logarithm of the sigmoid, computed stably.

log_sigmoid(x)=log⁡11+e−x=− softplus(−x)\mathrm{log\_sigmoid}(x) = \log\frac{1}{1 + e^{-x}} = -\,\mathrm{softplus}(-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 y = ClikaRT::ops::log_sigmoid(x);

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