diff options
Diffstat (limited to 'compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h')
-rw-r--r-- | compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h b/compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h index 53736f55f..84ee4ce93 100644 --- a/compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h +++ b/compute/ARMComputeEx/arm_compute/runtime/misc/functions/Utils.h @@ -95,8 +95,8 @@ void copyCast(const FromT value, arm_compute::ITensor *to, const arm_compute::Co float realValue = static_cast<float>(value); // NOTE We haven't known the policy of rounding for quantization. // So this is set to a temporary value. - *(to->ptr_to_element(id)) = - to->info()->quantization_info().quantize(realValue, arm_compute::RoundingPolicy::TO_ZERO); + *(to->ptr_to_element(id)) = quantize_qasymm8(realValue, to->info()->quantization_info(), + arm_compute::RoundingPolicy::TO_ZERO); break; } default: |