diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-07-26 11:49:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | b3d2579b567eabd98fdb4861bf1380fefa18c9aa (patch) | |
tree | ec684767bf8e445162abb2b372cce46dc6d16443 /tests/validation/Reference.cpp | |
parent | 8594b1139fd72e541e725296bd8bb625496f3381 (diff) | |
download | ComputeLibrary-b3d2579b567eabd98fdb4861bf1380fefa18c9aa.tar.gz |
COMPMID-415: Move ConvolutionLayer to new validation
Change-Id: I1f40dff43142c4e2c096122bfa1ca08241ff80ff
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81952
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/Reference.cpp')
-rw-r--r-- | tests/validation/Reference.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/validation/Reference.cpp b/tests/validation/Reference.cpp index 145f308c50..99e3095007 100644 --- a/tests/validation/Reference.cpp +++ b/tests/validation/Reference.cpp @@ -515,48 +515,6 @@ RawTensor Reference::compute_reference_batch_normalization_layer(const TensorSha return ref_dst; } -RawTensor Reference::compute_reference_convolution_layer(const TensorShape &input_shape, const TensorShape &weights_shape, const TensorShape &bias_shape, const TensorShape &output_shape, DataType dt, - const PadStrideInfo &conv_info, int fixed_point_position) -{ - // Create reference - RawTensor ref_src(input_shape, dt, 1, fixed_point_position); - RawTensor ref_weights(weights_shape, dt, 1, fixed_point_position); - RawTensor ref_bias(bias_shape, dt, 1, fixed_point_position); - RawTensor ref_dst(output_shape, dt, 1, fixed_point_position); - - // Fill reference - switch(dt) - { - case DataType::F32: - case DataType::F16: - { - std::uniform_real_distribution<> distribution(-1.0f, 1.0f); - library->fill(ref_src, distribution, 0); - library->fill(ref_weights, distribution, 1); - library->fill(ref_bias, distribution, 2); - break; - } - case DataType::QS16: - case DataType::QS8: - { - library->fill_tensor_uniform(ref_src, 0); - library->fill_tensor_uniform(ref_weights, 1); - library->fill_tensor_uniform(ref_bias, 2); - break; - } - default: - { - ARM_COMPUTE_ERROR("Not supported"); - break; - } - } - - // Compute reference - ReferenceCPP::convolution_layer(ref_src, ref_weights, ref_bias, ref_dst, conv_info); - - return ref_dst; -} - RawTensor Reference::compute_reference_fully_connected_layer(const TensorShape &input_shape, const TensorShape &weights_shape, const TensorShape &bias_shape, const TensorShape &output_shape, DataType dt, bool transpose_weights, int fixed_point_position) { |