From 06cf9339ed4b86d559c837dcb7c1c273ae6a35eb Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Tue, 31 Mar 2020 15:59:41 +0100 Subject: COMPMID-3294: Add AssetLibrary instance using a fixed seed - Add fixed_seed instance for future use - Make Copy fixture use the new instance to validate functionality Change-Id: I7e8c1504b8db3203213d084b300f10ecd384f7fa Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3107 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- tests/validation/fixtures/CopyFixture.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/validation/fixtures/CopyFixture.h') diff --git a/tests/validation/fixtures/CopyFixture.h b/tests/validation/fixtures/CopyFixture.h index 911d908e53..534d5b3145 100644 --- a/tests/validation/fixtures/CopyFixture.h +++ b/tests/validation/fixtures/CopyFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -54,7 +54,8 @@ protected: template void fill(U &&tensor, int i) { - library->fill_tensor_uniform(tensor, i); + // This kernel doesn't benefit from using random seed as it just copies values. + fixed_library->fill_tensor_uniform(tensor, i); } TensorType compute_target(const TensorShape &input_shape, const TensorShape &output_shape, DataType data_type) -- cgit v1.2.1