From 0dd81087558e138fea6b917628040961f81c222b Mon Sep 17 00:00:00 2001 From: wasupandceacar Date: Fri, 7 Jun 2024 16:52:21 +0800 Subject: [PATCH] fix abs ambiguous error in gcc-6.4.1 --- lite/kernels/arm/scale_compute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/kernels/arm/scale_compute.cc b/lite/kernels/arm/scale_compute.cc index 7f9949676e3..0076aa75d3d 100644 --- a/lite/kernels/arm/scale_compute.cc +++ b/lite/kernels/arm/scale_compute.cc @@ -31,7 +31,7 @@ void ScaleCompute::Run() { if (!param.bias_after_scale) { bias *= scale; } - if (std::isinf(abs(scale))) { + if (std::isinf(std::abs(scale))) { scale = 0; } T alpha = param.alpha;