From 164a2727d3bbce0e575d24b7db787c85e2e2c203 Mon Sep 17 00:00:00 2001 From: giuros01 Date: Tue, 20 Nov 2018 18:34:46 +0000 Subject: COMPMID-1717: CL: Implement Maximum, Minimum, SquaredDifference Change-Id: Ice653e48211053bd3cd20a693bd76de6b4efc370 Reviewed-on: https://review.mlplatform.org/270 Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- src/core/CL/CLKernelLibrary.cpp | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'src/core/CL/CLKernelLibrary.cpp') diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index f2b5d45e2c..ac1d4b349e 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -149,11 +149,6 @@ const std::map CLKernelLibrary::_kernel_program_map = { "accumulate_weighted", "accumulate.cl" }, { "activation_layer", "activation_layer.cl" }, { "activation_layer_qa8", "activation_layer_qa8.cl" }, - { "arithmetic_add_quantized", "arithmetic_op_quantized.cl" }, - { "arithmetic_add", "arithmetic_op.cl" }, - { "arithmetic_sub", "arithmetic_op.cl" }, - { "arithmetic_sub_quantized", "arithmetic_op_quantized.cl" }, - { "arithmetic_div", "arithmetic_op.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" }, @@ -246,6 +241,18 @@ const std::map CLKernelLibrary::_kernel_program_map = { "direct_convolution5x5_nhwc", "direct_convolution5x5.cl" }, { "direct_convolution5x5_f32_bifrost", "direct_convolution5x5.cl" }, { "direct_convolution_1x1_3x3_5x5_quantized", "direct_convolution_1x1_3x3_5x5_quantized.cl" }, + { "elementwise_operation_ADD", "elementwise_operation.cl" }, + { "elementwise_operation_SUB", "elementwise_operation.cl" }, + { "elementwise_operation_MAX", "elementwise_operation.cl" }, + { "elementwise_operation_MIN", "elementwise_operation.cl" }, + { "elementwise_operation_DIV", "elementwise_operation.cl" }, + { "elementwise_operation_SQUARED_DIFF", "elementwise_operation.cl" }, + { "elementwise_operation_ADD_quantized", "elementwise_operation_quantized.cl" }, + { "elementwise_operation_SUB_quantized", "elementwise_operation_quantized.cl" }, + { "elementwise_operation_MAX_quantized", "elementwise_operation_quantized.cl" }, + { "elementwise_operation_MIN_quantized", "elementwise_operation_quantized.cl" }, + { "elementwise_operation_DIV_quantized", "elementwise_operation_quantized.cl" }, + { "elementwise_operation_SQUARED_DIFF_quantized", "elementwise_operation_quantized.cl" }, { "erode", "erode.cl" }, { "fast_corners", "fast_corners.cl" }, { "flatten", "flatten.cl" }, @@ -508,14 +515,6 @@ const std::map CLKernelLibrary::_program_source_map = { "activation_layer_qa8.cl", #include "./cl_kernels/activation_layer_qa8.clembed" - }, - { - "arithmetic_op.cl", -#include "./cl_kernels/arithmetic_op.clembed" - }, - { - "arithmetic_op_quantized.cl", -#include "./cl_kernels/arithmetic_op_quantized.clembed" }, { "batch_to_space.cl", @@ -640,6 +639,14 @@ const std::map CLKernelLibrary::_program_source_map = { "direct_convolution_1x1_3x3_5x5_quantized.cl", #include "./cl_kernels/direct_convolution_1x1_3x3_5x5_quantized.clembed" + }, + { + "elementwise_operation.cl", +#include "./cl_kernels/elementwise_operation.clembed" + }, + { + "elementwise_operation_quantized.cl", +#include "./cl_kernels/elementwise_operation_quantized.clembed" }, { "erode.cl", -- cgit v1.2.1