diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-08-02 14:51:36 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 4dfc235367e602a366952a8495679e339d7a7263 (patch) | |
tree | e01c63ed0d63e81f33b00c414af68610d393c276 /tests/validation/Reference.cpp | |
parent | 218cc52ce6f0ebf052346650d1b2004e7201f348 (diff) | |
download | ComputeLibrary-4dfc235367e602a366952a8495679e339d7a7263.tar.gz |
COMPMID-415: Move GEMM to new validation
Change-Id: Ie32f981c86fa1b01905d2776b0d0a0a47b228f0b
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82538
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 | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/validation/Reference.cpp b/tests/validation/Reference.cpp index 99e3095007..e5bbdf2f2e 100644 --- a/tests/validation/Reference.cpp +++ b/tests/validation/Reference.cpp @@ -340,35 +340,6 @@ RawTensor Reference::compute_reference_gaussian5x5(const TensorShape &shape, Bor return ref_dst; } -RawTensor Reference::compute_reference_gemm(const TensorShape &src_shape1, const TensorShape &src_shape2, const TensorShape &src_shape3, - const TensorShape &dst_shape, float alpha, float beta, DataType dt, int fixed_point_position) -{ - RawTensor src1(src_shape1, dt, 1, fixed_point_position); - RawTensor src2(src_shape2, dt, 1, fixed_point_position); - RawTensor src3(src_shape3, dt, 1, fixed_point_position); - RawTensor dst(dst_shape, dt, 1, fixed_point_position); - - // Fill reference - if(dt == DataType::F16 || dt == DataType::F32) - { - std::uniform_real_distribution<> distribution(-1.0f, 1.0f); - library->fill(src1, distribution, 0); - library->fill(src2, distribution, 1); - library->fill(src3, distribution, 2); - } - else - { - library->fill_tensor_uniform(src1, 0); - library->fill_tensor_uniform(src2, 1); - library->fill_tensor_uniform(src3, 2); - } - - // Compute reference - ReferenceCPP::gemm(src1, src2, src3, dst, alpha, beta); - - return dst; -} - RawTensor Reference::compute_reference_non_linear_filter(const TensorShape &shape, NonLinearFilterFunction function, unsigned int mask_size, MatrixPattern pattern, const uint8_t *mask, BorderMode border_mode, uint8_t constant_border_value) { |