Skip to content

Commit 2d51217

Browse files
committed
chore!: Applying C++ lint
Signed-off-by: Anurag Dixit <[email protected]>
1 parent 925bf39 commit 2d51217

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cpp/bin/torchtrtc/accuracy.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ bool almost_equal(const at::Tensor& a, const at::Tensor& b, float atol, float rt
2727
auto result = diff.abs().max().item<float>();
2828
auto threshold = atol + (rtol * b.abs().max().item<float>());
2929

30+
torchtrt::logging::log(torchtrt::logging::Level::kDEBUG, std::string("Max Difference: ") + std::to_string(result));
3031
torchtrt::logging::log(
31-
torchtrt::logging::Level::kDEBUG,
32-
std::string("Max Difference: ") + std::to_string(result));
33-
torchtrt::logging::log(
34-
torchtrt::logging::Level::kDEBUG,
35-
std::string("Acceptable Threshold: ") + std::to_string(threshold));
32+
torchtrt::logging::Level::kDEBUG, std::string("Acceptable Threshold: ") + std::to_string(threshold));
3633

3734
return result <= threshold;
3835
}

cpp/bin/torchtrtc/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,8 @@ int main(int argc, char** argv) {
446446
threshold_ss << "atol: " << atol_val << " rtol: " << rtol_val;
447447
torchtrt::logging::log(
448448
torchtrt::logging::Level::kWARNING,
449-
std::string("Maximum numerical deviation for output exceeds tolerance thresholds (") + threshold_ss.str() +
450-
std::string(")"));
449+
std::string("Maximum numerical deviation for output exceeds tolerance thresholds (") +
450+
threshold_ss.str() + std::string(")"));
451451
}
452452
}
453453
} else {

0 commit comments

Comments
 (0)