aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Reference.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-07-21 17:19:58 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitf6ad98a95cc4a638e133538ae682185032c16201 (patch)
tree7940632c316c141bc0bb2557578b09f86ca7ca73 /tests/validation/Reference.cpp
parentf5d76f28b51e93447273d1f7fa7512b3e0a54166 (diff)
downloadComputeLibrary-f6ad98a95cc4a638e133538ae682185032c16201.tar.gz
COMPMID-415: Move SoftmaxLayer to new validation
Change-Id: I68bb359021256e67892e4fc00d436f9027a3bd07 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80942 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/Reference.cpp')
-rw-r--r--tests/validation/Reference.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/validation/Reference.cpp b/tests/validation/Reference.cpp
index b94a0e5195..5c669903c8 100644
--- a/tests/validation/Reference.cpp
+++ b/tests/validation/Reference.cpp
@@ -738,31 +738,6 @@ RawTensor Reference::compute_reference_roi_pooling_layer(const TensorShape &shap
return ref_dst;
}
-RawTensor Reference::compute_reference_softmax_layer(const TensorShape &shape, DataType dt, int fixed_point_position)
-{
- // Create reference
- RawTensor ref_src(shape, dt, 1, fixed_point_position);
- RawTensor ref_dst(shape, dt, 1, fixed_point_position);
-
- // Fill reference
- if(arm_compute::is_data_type_float(dt))
- {
- std::uniform_real_distribution<> distribution(-1000.f, 1000.f);
- library->fill(ref_src, distribution, 0);
- }
- else
- {
- int one_fixed = 1 << fixed_point_position;
- std::uniform_int_distribution<> distribution(-one_fixed, one_fixed);
- library->fill(ref_src, distribution, 0);
- }
-
- // Compute reference
- ReferenceCPP::softmax_layer(ref_src, ref_dst);
-
- return ref_dst;
-}
-
RawTensor Reference::compute_reference_fixed_point_operation(const TensorShape &shape, DataType dt_in, DataType dt_out, FixedPointOp op, int fixed_point_position)
{
// Create reference