aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-11-07 17:22:06 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-11-08 15:56:49 +0000
commit9aaf09ec557dcce63cd1b5de173ce8947108327d (patch)
treec4f95cb7fc3762a523e4295c0691fdf82347a5f8
parent11b0b8ae35b3a75e94b04d9874b5a4c057e2ff6b (diff)
downloadComputeLibrary-9aaf09ec557dcce63cd1b5de173ce8947108327d.tar.gz
COMPMID-2452: Fix meta-data override issue in DynamicTensor test
Avoid overriding the tensor meta-data once configures. This caused write-out-of-bounds errors as padding was getting reset. Change-Id: Id5eccfd2a9b7ab39bcea37d9c6bbb6e42779b478 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/2246 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--tests/validation/fixtures/UNIT/DynamicTensorFixture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/fixtures/UNIT/DynamicTensorFixture.h b/tests/validation/fixtures/UNIT/DynamicTensorFixture.h
index 804b39464..02d28fa78 100644
--- a/tests/validation/fixtures/UNIT/DynamicTensorFixture.h
+++ b/tests/validation/fixtures/UNIT/DynamicTensorFixture.h
@@ -454,9 +454,9 @@ protected:
tensor_info.set_data_layout(_data_layout);
weights_info.set_data_layout(_data_layout);
+ tensors[0].allocator()->init(tensor_info);
for(unsigned int f = 0; f < num_functions; ++f)
{
- tensors[f].allocator()->init(tensor_info);
tensors[f + 1].allocator()->init(tensor_info);
ws[f].allocator()->init(weights_info);