aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2022-11-09 09:26:27 +0000
committerGunes Bayir <gunes.bayir@arm.com>2022-11-14 15:01:27 +0000
commitec0113dd7749991959ae351934eea0c0d8077dcb (patch)
tree792f38b3a05fa85436339d54abddab096e20cc77 /Android.bp
parent46ede332c7064b85dc538891cad165b3bb427320 (diff)
downloadComputeLibrary-ec0113dd7749991959ae351934eea0c0d8077dcb.tar.gz
Optimize Transposed Convolution for CL backend (FP32/16)
This patch optimizes transposed convolution for CL backend by rewriting it in a single kernel instead of three (flip_kernel + upsample + conv). The new kernel skips the upsampling step which reduces the input space of convolution by stride_x * stride_y, resulting in significant performance improvement. It also skips the kernel flipping by traversing the weights accordingly, thus reduces the memory footprint. Resolves: COMPMID-5676 Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Change-Id: I8a333212dc7c5f7f0597aa58b0d56d44814baa14 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8588 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index d02d436fa0..89a7a43060 100644
--- a/Android.bp
+++ b/Android.bp
@@ -119,6 +119,7 @@ opencl_srcs = [
"src/core/CL/cl_kernels/nhwc/scale.cl",
"src/core/CL/cl_kernels/nhwc/space_to_batch.cl",
"src/core/CL/cl_kernels/nhwc/space_to_depth.cl",
+ "src/core/CL/cl_kernels/nhwc/transposed_convolution.cl",
"src/core/CL/cl_kernels/nhwc/upsample_layer.cl",
"src/core/CL/cl_kernels/nhwc/winograd_filter_transform.cl",
"src/core/CL/cl_kernels/nhwc/winograd_input_transform.cl",
@@ -656,6 +657,7 @@ cc_library_static {
"src/gpu/cl/kernels/ClScaleKernel.cpp",
"src/gpu/cl/kernels/ClSoftmaxKernel.cpp",
"src/gpu/cl/kernels/ClTransposeKernel.cpp",
+ "src/gpu/cl/kernels/ClTransposedConvolutionKernel.cpp",
"src/gpu/cl/kernels/ClWeightsReshapeKernel.cpp",
"src/gpu/cl/kernels/ClWidthConcatenate2TensorsKernel.cpp",
"src/gpu/cl/kernels/ClWidthConcatenate4TensorsKernel.cpp",
@@ -707,6 +709,7 @@ cc_library_static {
"src/gpu/cl/operators/ClSoftmax.cpp",
"src/gpu/cl/operators/ClSub.cpp",
"src/gpu/cl/operators/ClTranspose.cpp",
+ "src/gpu/cl/operators/ClTransposedConvolution.cpp",
"src/gpu/cl/operators/ClWinogradConv2d.cpp",
"src/gpu/cl/operators/experimental/dynamic_fusion/ClCompositeOperator.cpp",
"src/runtime/Allocator.cpp",