aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Reference.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-07-21 17:36:33 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commit572ade736ab344a62afa7da214cd9407fe53a281 (patch)
treeadc0b31c0e236b65822dcbc9fb45ce401cc6ead4 /tests/validation/Reference.cpp
parent8e6faf1e9f1af7a03441612c30644776e87fd235 (diff)
downloadComputeLibrary-572ade736ab344a62afa7da214cd9407fe53a281.tar.gz
COMPMID-415: Move ActivationLayer to new validation
Change-Id: I38ce20d95640f9c1baf699a095c35e592ad4339f Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81115 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.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/validation/Reference.cpp b/tests/validation/Reference.cpp
index f9052f1dba..011fd091f2 100644
--- a/tests/validation/Reference.cpp
+++ b/tests/validation/Reference.cpp
@@ -453,56 +453,6 @@ RawTensor Reference::compute_reference_threshold(const TensorShape &shape, uint8
return ref_dst;
}
-RawTensor Reference::compute_reference_activation_layer(const TensorShape &shape, DataType dt, ActivationLayerInfo act_info, 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 tensors
- switch(dt)
- {
- case DataType::QS8:
- {
- const std::pair<int8_t, int8_t> bounds = get_activation_layer_test_bounds<int8_t>(act_info.activation(), fixed_point_position);
- std::uniform_int_distribution<> distribution(bounds.first, bounds.second);
- library->fill(ref_src, distribution, 0);
- break;
- }
- case DataType::QS16:
- {
- const std::pair<int16_t, int16_t> bounds = get_activation_layer_test_bounds<int16_t>(act_info.activation(), fixed_point_position);
- std::uniform_int_distribution<> distribution(bounds.first, bounds.second);
- library->fill(ref_src, distribution, 0);
- break;
- }
- case DataType::F16:
- {
- const std::pair<half_float::half, half_float::half> bounds = get_activation_layer_test_bounds<half_float::half>(act_info.activation());
- std::uniform_real_distribution<> distribution(bounds.first, bounds.second);
- library->fill(ref_src, distribution, 0);
- break;
- }
- case DataType::F32:
- {
- const std::pair<float, float> bounds = get_activation_layer_test_bounds<float>(act_info.activation());
- std::uniform_real_distribution<> distribution(bounds.first, bounds.second);
- library->fill(ref_src, distribution, 0);
- break;
- }
- default:
- {
- ARM_COMPUTE_ERROR("Not supported");
- break;
- }
- }
-
- // Compute reference
- ReferenceCPP::activation_layer(ref_src, ref_dst, act_info);
-
- return ref_dst;
-}
-
RawTensor Reference::compute_reference_batch_normalization_layer(const TensorShape &shape0, const TensorShape &shape1, DataType dt, float epsilon, int fixed_point_position)
{
// Create reference