diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-06-04 15:05:38 +0100 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-06-15 13:59:04 +0000 |
commit | 4a61653202afb018f4f259d3c144a735d73f0a20 (patch) | |
tree | 082fd42e91cc0914dcacc0746bbe3e117d74210c /tests/datasets/ShapeDatasets.h | |
parent | ccd94966cc58ef5148577e71ba1a4ff5aae1f3bb (diff) | |
download | ComputeLibrary-4a61653202afb018f4f259d3c144a735d73f0a20.tar.gz |
COMPMID-3480: Perform in-place computations in NEArithmeticAdditionKernel
Change-Id: I0089657dd95d7c7b8592984def8e8de1d7e6d085
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3308
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/datasets/ShapeDatasets.h')
-rw-r--r-- | tests/datasets/ShapeDatasets.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h index 087342d3b8..0ea8091258 100644 --- a/tests/datasets/ShapeDatasets.h +++ b/tests/datasets/ShapeDatasets.h @@ -241,6 +241,30 @@ public: } }; +/** Data set containing pairs of small tensor shapes that are broadcast compatible for in-place computations. + * When doing in-place computations, only the second input can be broadcast. + */ +class SmallShapesBroadcastInPlace final : public framework::dataset::ZipDataset<ShapeDataset, ShapeDataset> +{ +public: + SmallShapesBroadcastInPlace() + : ZipDataset<ShapeDataset, ShapeDataset>( + ShapeDataset("Shape0", + { + TensorShape{ 9U, 9U, 3U, 4U }, + TensorShape{ 27U, 13U, 2U, 4U }, + TensorShape{ 1U, 16U, 10U, 2U, 128U }, + }), + ShapeDataset("Shape1", + { + TensorShape{ 9U, 1U, 3U }, + TensorShape{ 1U }, + TensorShape{ 1U, 1U, 1U, 1U, 128U }, + })) + { + } +}; + /** Data set containing medium tensor shapes. */ class MediumShapes final : public ShapeDataset { |