diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2019-02-14 17:47:33 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-02-15 16:48:26 +0000 |
commit | 80c88167ce5d891b05e0e9f012e99be5a7e7ee9e (patch) | |
tree | da4fa478edf35081f2e4c1fd334ff51038cf353e /src/core/CL/CLKernelLibrary.cpp | |
parent | cb3eecc74e554058456257419b7022e214aff83c (diff) | |
download | ComputeLibrary-80c88167ce5d891b05e0e9f012e99be5a7e7ee9e.tar.gz |
COMPMID-1710: Fix CL logistic activation for QASYMM8
Logistic activation in QASYMM8 is performed in floating point and then
converting back to QASYMM8. However, if input and output have different
quantization information, a double conversion is done leading to loss in
accuracy.
This patch creates a special case kernel for logistic activation.
Change-Id: Ia18ee0b2f84701674f88785bcd13753b50d64a08
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/696
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r-- | src/core/CL/CLKernelLibrary.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index ce846d1dc5..a7d371dabc 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -149,6 +149,7 @@ const std::map<std::string, std::string> CLKernelLibrary::_kernel_program_map = { "accumulate_weighted", "accumulate.cl" }, { "activation_layer", "activation_layer.cl" }, { "activation_layer_qa8", "activation_layer_qa8.cl" }, + { "activation_layer_logistic_qa8", "activation_layer_qa8.cl" }, { "batch_to_space_nchw", "batch_to_space.cl" }, { "batch_to_space_static_nchw", "batch_to_space.cl" }, { "batch_to_space_nhwc", "batch_to_space.cl" }, |