aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2019-09-17 08:59:09 +0100
committerSiCongLi <sicong.li@arm.com>2019-12-11 17:05:24 +0000
commite6c3344f2a76b0724172200b1d5a443393045336 (patch)
tree8cfa3fb5ed70ab226b35a09f38b3ffaf226bba98 /tests
parent35c3eb011d8e2813d83c6a6cbe28a446534e4a14 (diff)
downloadComputeLibrary-e6c3344f2a76b0724172200b1d5a443393045336.tar.gz
COMPMID-2637 [CL] fix broadcast pixel-wise multiplication with 5D tensors
Broadcast pixel-wise multiplication with 5D tensors is fixed by adding information whether a dimension has been broadcasted to compute correct start offset when adding 3D tensor argument. The testcase that failed is added to the validation test suite. Change-Id: I320876f507012c27b39daae1316f9b69138ed204 Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/1994 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/datasets/ShapeDatasets.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h
index 07ecf45d81..b479eb4953 100644
--- a/tests/datasets/ShapeDatasets.h
+++ b/tests/datasets/ShapeDatasets.h
@@ -203,7 +203,9 @@ public:
TensorShape{ 128U, 1U, 5U, 3U },
TensorShape{ 9U, 9U, 3U, 4U },
TensorShape{ 27U, 13U, 2U, 4U },
- TensorShape{ 1U, 1U, 1U, 5U }
+ TensorShape{ 1U, 1U, 1U, 5U },
+ TensorShape{ 1U, 16U, 10U, 2U, 128U },
+ TensorShape{ 1U, 16U, 10U, 2U, 128U }
}),
ShapeDataset("Shape1",
{
@@ -212,7 +214,9 @@ public:
TensorShape{ 128U, 64U, 1U, 3U },
TensorShape{ 9U, 1U, 3U },
TensorShape{ 1U },
- TensorShape{ 9U, 9U, 3U, 5U }
+ TensorShape{ 9U, 9U, 3U, 5U },
+ TensorShape{ 1U, 1U, 1U, 1U, 128U },
+ TensorShape{ 128U }
}))
{
}
@@ -686,7 +690,7 @@ public:
: ShapeDataset("InputShape",
{
// Batch size 1
- TensorShape{ 32U, 37U, 3U },
+ TensorShape{ 32U, 37U, 3U },
// Batch size 4
TensorShape{ 32U, 37U, 3U, 4U },
})
@@ -702,7 +706,7 @@ public:
: ShapeDataset("InputShape",
{
// Batch size 1
- TensorShape{ 32U, 37U, 3U },
+ TensorShape{ 32U, 37U, 3U },
// Batch size 4
TensorShape{ 32U, 37U, 3U, 4U },
// Arbitrary batch size