From c4d45559b00cdbdca80296c23be5939439fbbbd0 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 19 Oct 2020 12:41:30 +0100 Subject: COMPMID-3853: Decouple NEActivationLayer Decouple datatypes and remove Activation template. Binary size dropped by 25Kb. Signed-off-by: Michalis Spyrou Change-Id: I32c207db124895fee25b56437f9495403315b867 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4217 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- scripts/arm_compute_library_nn_driver.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/arm_compute_library_nn_driver.go') diff --git a/scripts/arm_compute_library_nn_driver.go b/scripts/arm_compute_library_nn_driver.go index 26cb525bcf..78300880ba 100644 --- a/scripts/arm_compute_library_nn_driver.go +++ b/scripts/arm_compute_library_nn_driver.go @@ -25,6 +25,15 @@ func globalFlags(ctx android.BaseContext) []string { data_types := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",") for _, x := range data_types { + if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "QASYMM8" { + cppflags = append(cppflags, "-DENABLE_QASYMM8_KERNELS") + } + if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "QASYMM8_SIGNED" { + cppflags = append(cppflags, "-DENABLE_QASYMM8_SIGNED_KERNELS") + } + if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "QASYMM16" { + cppflags = append(cppflags, "-DENABLE_QASYMM16_KERNELS") + } if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "FP16" { cppflags = append(cppflags, "-DENABLE_FP16_KERNELS") } -- cgit v1.2.1