diff options
author | Vidhya Sudhan Loganathan <vidhyasudhan.loganathan@arm.com> | 2018-07-02 09:13:49 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:10 +0000 |
commit | 014333d73883c3872e458cedda5ccef586a7ccd4 (patch) | |
tree | 0f28bbc1ab769993af91b40e4584061f6ed6d3fa /tests/benchmark/fixtures/BatchNormalizationLayerFixture.h | |
parent | de01468bbfff3a7d8bcbba3bfdf5698fb2e3b267 (diff) | |
download | ComputeLibrary-014333d73883c3872e458cedda5ccef586a7ccd4.tar.gz |
COMPMID-970 : Remove QS8 / QS16 support
Removed Fixed point position arguments from test sources
Change-Id: I8343724723b71611fd501ed34de0866d3fb60e7e
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/136382
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures/BatchNormalizationLayerFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/BatchNormalizationLayerFixture.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h index ae8f8a7af1..42adefeef6 100644 --- a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h +++ b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h @@ -45,7 +45,7 @@ public: void setup(TensorShape tensor_shape, TensorShape param_shape, float epsilon, bool use_gamma, bool use_beta, ActivationLayerInfo act_info, DataType data_type, DataLayout data_layout, int batches) { // Set batched in source and destination shapes - const unsigned int fixed_point_position = 4; + tensor_shape.set(tensor_shape.num_dimensions(), batches); if(data_layout == DataLayout::NHWC) { @@ -53,12 +53,12 @@ public: } // Create tensors - src = create_tensor<TensorType>(tensor_shape, data_type, 1, fixed_point_position, QuantizationInfo(), data_layout); - dst = create_tensor<TensorType>(tensor_shape, data_type, 1, fixed_point_position, QuantizationInfo(), data_layout); - mean = create_tensor<TensorType>(param_shape, data_type, 1, fixed_point_position); - variance = create_tensor<TensorType>(param_shape, data_type, 1, fixed_point_position); - beta = create_tensor<TensorType>(param_shape, data_type, 1, fixed_point_position); - gamma = create_tensor<TensorType>(param_shape, data_type, 1, fixed_point_position); + src = create_tensor<TensorType>(tensor_shape, data_type, 1, QuantizationInfo(), data_layout); + dst = create_tensor<TensorType>(tensor_shape, data_type, 1, QuantizationInfo(), data_layout); + mean = create_tensor<TensorType>(param_shape, data_type, 1); + variance = create_tensor<TensorType>(param_shape, data_type, 1); + beta = create_tensor<TensorType>(param_shape, data_type, 1); + gamma = create_tensor<TensorType>(param_shape, data_type, 1); // Create and configure function TensorType *beta_ptr = use_beta ? &beta : nullptr; |