Fix two corner cases in the new implementation of logistic sigmoid.

  1. Truncate at the first point where the interpolant is exactly 1, such that 1 is returned for all arguments greater than or equal to it.

  2. Make sure that Sigmoid(+Inf) = 1 in the generic implementation.

Edited by Rasmus Munk Larsen

Merge request reports

Loading