aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Reference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/Reference.cpp')
-rw-r--r--tests/validation/Reference.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/validation/Reference.cpp b/tests/validation/Reference.cpp
index 0a57fc0ea5..1b941870ba 100644
--- a/tests/validation/Reference.cpp
+++ b/tests/validation/Reference.cpp
@@ -459,7 +459,14 @@ RawTensor Reference::compute_reference_activation_layer(const TensorShape &shape
{
int min_bound = 0;
int max_bound = 0;
- std::tie(min_bound, max_bound) = get_activation_layer_test_bounds<int8_t>(act_info.activation(), fixed_point_position);
+ if(dt == DataType::QS8)
+ {
+ std::tie(min_bound, max_bound) = get_activation_layer_test_bounds<int8_t>(act_info.activation(), fixed_point_position);
+ }
+ else
+ {
+ std::tie(min_bound, max_bound) = get_activation_layer_test_bounds<int16_t>(act_info.activation(), fixed_point_position);
+ }
std::uniform_int_distribution<> distribution(min_bound, max_bound);
library->fill(ref_src, distribution, 0);
}