From 201e0fee596dafcf9c869a550fae29779aad2394 Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Wed, 27 Jan 2021 13:14:56 +0000 Subject: Make Softmax kernels on OpenCL stateless * ClSoftmaxKernel and ClSoftmax are created. * ClSoftmaxKernel is now state-less and ClSoftmax handles the internal tensors required for computation. * add_const_tensor() is added to TensorPack not only to have symmetric interface but also to benefit from implicit conversion. Implements: COMPMID-3998 Change-Id: I4f823121777be24260fd12b2cd71a6ff718c4eed Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5087 Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- Android.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index 93ce568936..8fd47514ee 100644 --- a/Android.bp +++ b/Android.bp @@ -146,7 +146,6 @@ cc_library_static { "src/core/CL/kernels/CLReverseKernel.cpp", "src/core/CL/kernels/CLScaleKernel.cpp", "src/core/CL/kernels/CLSelectKernel.cpp", - "src/core/CL/kernels/CLSoftmaxLayerKernel.cpp", "src/core/CL/kernels/CLSpaceToBatchLayerKernel.cpp", "src/core/CL/kernels/CLSpaceToDepthLayerKernel.cpp", "src/core/CL/kernels/CLStackLayerKernel.cpp", @@ -387,6 +386,7 @@ cc_library_static { "src/core/gpu/cl/kernels/ClPermuteKernel.cpp", "src/core/gpu/cl/kernels/ClPoolingKernel.cpp", "src/core/gpu/cl/kernels/ClReshapeKernel.cpp", + "src/core/gpu/cl/kernels/ClSoftmaxKernel.cpp", "src/core/gpu/cl/kernels/ClWidthConcatenate2TensorsKernel.cpp", "src/core/gpu/cl/kernels/ClWidthConcatenate4TensorsKernel.cpp", "src/core/gpu/cl/kernels/ClWidthConcatenateKernel.cpp", @@ -681,6 +681,7 @@ cc_library_static { "src/runtime/gpu/cl/operators/ClPermute.cpp", "src/runtime/gpu/cl/operators/ClPooling.cpp", "src/runtime/gpu/cl/operators/ClReshape.cpp", + "src/runtime/gpu/cl/operators/ClSoftmax.cpp", "src/runtime/gpu/cl/operators/ClSub.cpp", "utils/CommonGraphOptions.cpp", "utils/GraphUtils.cpp", -- cgit v1.2.1