From e5bf4c55eff186a8871206fbc1b02391fd8d75b2 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Thu, 14 Feb 2019 17:47:33 +0000 Subject: 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 Reviewed-on: https://review.mlplatform.org/696 Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins --- src/core/CL/CLKernelLibrary.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/CL/CLKernelLibrary.cpp') 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 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" }, -- cgit v1.2.1