Skip to content

Commit

Permalink
fix abs ambiguous error in gcc-6.4.1 (#10522)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasupandceacar authored Jun 14, 2024
1 parent 062bd0b commit 79b0a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lite/kernels/arm/scale_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void ScaleCompute<T, PType>::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;
Expand Down

0 comments on commit 79b0a58

Please sign in to comment.