diff options
author | Aleksandr Nikolaev <aleksandr.nikolaev@arm.com> | 2021-05-04 16:46:27 +0100 |
---|---|---|
committer | Aleksandr Nikolaev <aleksandr.nikolaev@arm.com> | 2021-05-05 12:13:54 +0000 |
commit | 7e9f34d219ae5dd3ddd5d26475f42aa02bcf010f (patch) | |
tree | 7dff0ce6bcd7579882388426327df78b2c6e1b41 /src/core/CL/cl_kernels/qlstm_layer_normalization.cl | |
parent | c9309f22a026dfce92365e2f0802c40e8e1c449e (diff) | |
download | ComputeLibrary-7e9f34d219ae5dd3ddd5d26475f42aa02bcf010f.tar.gz |
Fix for tanh at small argument values
x - x^3/3 is more accurate approximation for |x| < 0.005
than (exp2x - 1)/(exp2x + 1).
Resolves: COMPMID-4098
Signed-off-by: Aleksandr Nikolaev <aleksandr.nikolaev@arm.com>
Change-Id: If6f9d7ce4d8d00d36d2dada7ab8f8d9f5b58f5c0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/321354
Tested-by: bsgcomp <bsgcomp@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5563
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/qlstm_layer_normalization.cl')
0 files changed, 0 insertions, 0 deletions