Skip to main content

ClikaRT::ops::log_sigmoid

function

log_sigmoid()

Tensor log_sigmoid(Tensor x)

Logarithm of the sigmoid, computed stably.

log_sigmoid(x)=log11+ex=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 x.

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

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