Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyanwangms committed Sep 14, 2024
1 parent 45b7d23 commit cf28390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/test/providers/checkers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ void InternalNumericalCheck(const Tensor& expected,
EXPECT_TRUE(std::isnan(cur_actual[i])) << "Expected NaN. i:" << i;
} else if (std::isinf(cur_expected[i])) { // Test infinity for equality
EXPECT_EQ(cur_expected[i], cur_actual[i]) << "Expected infinity. i:" << i;
} else if (std::isinf(cur_actual[i])) {// Handle cur_actual is inf but cur_expected is FLT_MAX case
} else if (std::isinf(cur_actual[i])) { // Handle cur_actual is inf but cur_expected is FLT_MAX case
EXPECT_TRUE(cur_expected[i] == FLT_MAX) << "Expected infinity. i:" << i;
} else {
T tolerance = get_tolerance<T>(tolerance_params, cur_expected[i]);
Expand Down

0 comments on commit cf28390

Please sign in to comment.