From f67903b8ab8205b47f0ee2c27aeca8bed405c58e Mon Sep 17 00:00:00 2001 From: Mohammed Suhail Munshi Date: Mon, 4 Jul 2022 13:36:14 +0100 Subject: Add Dynamic Fusion Tests with BugFixes - Allow fusing arbitrary number of existing elementwise operators - Fix issues with 3D and 4D tensors in Elementwise Addition and Floor components - Collapse the 3D/4D window in the same way as that used by Conv2d, i.e. collapse dim 1 and dim 2 together - Fix Floor component issues when used after other components - Add Dynamic Fusion Tests (Floor + Div, Conv2d + Add + Div) - Add Addition ElementWise Broadcasting Test Resolves: [COMPMID-5356] Change-Id: I58b93a90175bb0440d43531d18cac94b5f5c2689 Signed-off-by: Mohammed Suhail Munshi Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/433956 Tested-by: bsgcomp Reviewed-by: Pablo Tello Comments-Addressed: bsgcomp Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7957 Reviewed-by: SiCong Li Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- .../components/ClElementwiseKernelComponent.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/components/ClElementwiseKernelComponent.h') diff --git a/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/components/ClElementwiseKernelComponent.h b/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/components/ClElementwiseKernelComponent.h index 91b14ffafa..f8377457d3 100644 --- a/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/components/ClElementwiseKernelComponent.h +++ b/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/components/ClElementwiseKernelComponent.h @@ -37,6 +37,20 @@ namespace dynamic_fusion class ClElementwiseKernelComponent : public IClKernelComponent { public: + /** Construct a new Cl Elementwise Kernel Component object + * + * @param[in] blueprint Blueprint to which this component is added + * @param[in] desc Component descriptor + * @param[in] lhs Link to LHS tensor + * @param[in] rhs Link to RHS tensor + * @param[out] dst Link to DST tensor + * + * Support Level + * Data Type: F16, F32 + * Tensor Shape: Any shape of arbitrary dimension >= 1 and <= 4 + * Value Range: All + * Broadcasting: Only RHS tensor can be broadcasted into LHS. Only support broadcasting in dimension 1 and dimension 2 or all dimension 0, 1 and 2 + */ ClElementwiseKernelComponent(ClKernelBlueprint *blueprint, const ClElementwiseKernelDescriptor &desc, const Link &lhs, const Link &rhs, const Link &dst) : IClKernelComponent(blueprint), _desc{ desc }, _lhs{ lhs }, _rhs{ rhs }, _dst{ dst } { -- cgit v1.2.1