1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

dnn: SIMD for 13 transcendental activations in the 5.x engine

Port of #29377 to 5.x. Wires Log, Erf, Exp, Sin, Cos, Sinh, Cosh, Tan,
Softplus, BNLL, Asinh, Acosh, Atanh into the dispatched activation_kernels
registry, plus a Layer_Activation perf test. 1.4-12.3x across
M4/A76/Threadripper/Xeon, correct to <=5e-7 vs scalar.
This commit is contained in:
Tonu Samuel
2026-06-27 09:11:09 +03:00
parent 8b06f28e1b
commit 4d839a16f0
4 changed files with 338 additions and 1 deletions
+14 -1
View File
@@ -1027,7 +1027,20 @@ CV__DNN_INLINE_NS_BEGIN
ACTIV_GELU,
ACTIV_GELU_APPROX,
ACTIV_RELU,
ACTIV_CLIP
ACTIV_CLIP,
ACTIV_LOG,
ACTIV_ERF,
ACTIV_EXP,
ACTIV_SIN,
ACTIV_COS,
ACTIV_SINH,
ACTIV_COSH,
ACTIV_TAN,
ACTIV_SOFTPLUS,
ACTIV_BNLL,
ACTIV_ASINH,
ACTIV_ACOSH,
ACTIV_ATANH
};
/** Returns a platform-optimized activation function pointer for the given type.