diff options
author | Jakub Sujak <jakub.sujak@arm.com> | 2022-11-25 16:43:18 +0000 |
---|---|---|
committer | Jakub Sujak <jakub.sujak@arm.com> | 2022-12-13 09:58:36 +0000 |
commit | 32741725ac6e6c9658c51ed8585d314a1707ee8c (patch) | |
tree | a32c508ade253975a892387f7d5eba5e3f02e650 /src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h | |
parent | 5945070e4d73962f6d1e0b9eff2ab7488ee5c787 (diff) | |
download | ComputeLibrary-32741725ac6e6c9658c51ed8585d314a1707ee8c.tar.gz |
Add CLAMP operator to Dynamic Fusion interface
Add the CLAMP activation function for GPU backend with generic activation Component and TemplateWriter modules.
CLAMP is internally implemented as LU_BOUNDED_RELU activation function with the alpha and beta variables swapped.
We do NOT consider in-place computation cases in this patch.
* CLAMP operator for GPU backend.
* Activation Component and TemplateWriter for CL backend.
* TemplateWriter generates tiled kernel code.
* Supported data types: F16, F32.
* Validation tests for CLAMP operation.
Resolves: COMPMID-5519
Change-Id: Ieb097d6b1e6a7ed2b882518e88314454efb402f6
Signed-off-by: Jakub Sujak <jakub.sujak@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8762
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Reviewed-by: SiCong Li <sicong.li@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h')
-rw-r--r-- | src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h b/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h index 48027a9b8d..77f83c9e87 100644 --- a/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h +++ b/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateDirectConv2d.h @@ -54,6 +54,8 @@ public: const ArgumentPack<ITensorInfo> &tensors, const Attributes &attributes, const Settings &settings); + /** Destructor */ + ~ClTemplateDirectConv2d() override = default; /** Prevent instances of this class from being copy constructed */ ClTemplateDirectConv2d(const ClTemplateDirectConv2d &direct_conv2d) = delete; /** Prevent instances of this class from being copied */ |