Skip to content

Commit 79b0a58

Browse files
fix abs ambiguous error in gcc-6.4.1 (#10522)
1 parent 062bd0b commit 79b0a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lite/kernels/arm/scale_compute.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void ScaleCompute<T, PType>::Run() {
3131
if (!param.bias_after_scale) {
3232
bias *= scale;
3333
}
34-
if (std::isinf(abs(scale))) {
34+
if (std::isinf(std::abs(scale))) {
3535
scale = 0;
3636
}
3737
T alpha = param.alpha;

0 commit comments

Comments
 (0)