Files
opencv-MIRROR/modules
Nakamura dbe66b4214 dnn: stabilize CPU Softplus for large and small inputs 🤖🤖🤖 (#31257)
The CPU activation computes log(1 + exp(x)), which overflows at x=120 and loses small negative-tail outputs. Use max(x, 0) + log1p(exp(-abs(x))) and compensate rounding of the SIMD logarithm argument. Route the layer fallback through the same dispatched kernel.

A 129-element imported ONNX model with positive and negative tails had 51 discrepancies before and zero after the change. Three focused native Softplus tests passed.
2026-12-01 15:47:23 +05:30
..