From 587708b05ca63fa88118daec82e2c39d63e60086 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 31 Dec 2018 15:43:52 +0000 Subject: COMPMID-1796: Add support for ranged distribution. Change-Id: I6347a02219bf47e21a29b9b5d1a9e7e23de8a502 Reviewed-on: https://review.mlplatform.org/482 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- tests/validation/fixtures/ElementwiseOperationsFixture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/validation') diff --git a/tests/validation/fixtures/ElementwiseOperationsFixture.h b/tests/validation/fixtures/ElementwiseOperationsFixture.h index 8190b2405a..8b88f6a8fb 100644 --- a/tests/validation/fixtures/ElementwiseOperationsFixture.h +++ b/tests/validation/fixtures/ElementwiseOperationsFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -58,7 +58,7 @@ protected: template void fill(U &&tensor, int i) { - library->fill_tensor_uniform(tensor, i); + (_op == ArithmeticOperation::DIV) ? library->fill_tensor_uniform_ranged(tensor, i, { std::pair(-0.001f, 0.001f) }) : library->fill_tensor_uniform(tensor, i); } TensorType compute_target(const TensorShape &shape0, const TensorShape &shape1, DataType data_type0, DataType data_type1, DataType output_data_type, -- cgit v1.2.1