diff options
author | Jonathan Deakin <jonathan.deakin@arm.com> | 2022-10-13 10:50:25 +0000 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-10-24 09:38:39 +0000 |
commit | 2bc8cfe274b1f524013fbb6561930daca496b3ec (patch) | |
tree | 7db162020c02fd8c25743c4e58272f9c9047a2f6 /src/core/CL | |
parent | a4f887021503507194774aeab3f76dca10888b97 (diff) | |
download | ComputeLibrary-2bc8cfe274b1f524013fbb6561930daca496b3ec.tar.gz |
Add FP16 tanh based on rational approximation
Use rational approximation with optimised coefficients
to calculate tanh_f16. Method is ~2.5x faster than previous
and has lower relative and absolute error.
This will fix https://github.com/ARM-software/ComputeLibrary/issues/1002
Credit to George Steed for suggesting use of vcageq instead of min+max
Signed-off-by: Jonathan Deakin <jonathan.deakin@arm.com>
Change-Id: Id70da3aab666c68b0d798266a837b59c00937bf7
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8480
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL')
0 files changed, 0 insertions, 0 deletions