From 2941f1fed360c8c4e1a2b7a58e3dbbcbcd1ca803 Mon Sep 17 00:00:00 2001 From: Amadeusz Szymko Date: Wed, 25 Dec 2024 10:14:29 +0900 Subject: [PATCH] style(autoware_tensorrt_common): linting Signed-off-by: Amadeusz Szymko --- .../include/autoware/tensorrt_common/conv_profiler.hpp | 4 +++- .../include/autoware/tensorrt_common/profiler.hpp | 2 +- .../include/autoware/tensorrt_common/tensorrt_conv_calib.hpp | 1 + .../include/autoware/tensorrt_common/utils.hpp | 1 + perception/autoware_tensorrt_common/src/profiler.cpp | 3 +++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/conv_profiler.hpp b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/conv_profiler.hpp index 66e17a30588fc..a9aa92c357b9b 100644 --- a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/conv_profiler.hpp +++ b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/conv_profiler.hpp @@ -65,7 +65,9 @@ class ConvProfiler : public tensorrt_common::Profiler */ explicit ConvProfiler( const std::vector & src_profilers = std::vector()) - : Profiler(src_profilers) {}; + : Profiler(src_profilers) + { + } /** * @brief Set per-layer profile information for model. diff --git a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/profiler.hpp b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/profiler.hpp index d82eab8c5f89b..c5683f0aa9125 100644 --- a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/profiler.hpp +++ b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/profiler.hpp @@ -51,7 +51,7 @@ class Profiler : public nvinfer1::IProfiler * * @param[in] src_profilers Source profilers to merge. */ - Profiler(const std::vector & src_profilers = std::vector()); + explicit Profiler(const std::vector & src_profilers = std::vector()); /** * @brief Report layer time. diff --git a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/tensorrt_conv_calib.hpp b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/tensorrt_conv_calib.hpp index 2b87bb08dc22a..44a944031086e 100644 --- a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/tensorrt_conv_calib.hpp +++ b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/tensorrt_conv_calib.hpp @@ -23,6 +23,7 @@ #include #include +#include #include namespace autoware diff --git a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/utils.hpp b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/utils.hpp index 6701e81e5ef16..be640f52147d9 100644 --- a/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/utils.hpp +++ b/perception/autoware_tensorrt_common/include/autoware/tensorrt_common/utils.hpp @@ -32,6 +32,7 @@ namespace fs = ::std::experimental::filesystem; #include #include #include +#include namespace autoware { diff --git a/perception/autoware_tensorrt_common/src/profiler.cpp b/perception/autoware_tensorrt_common/src/profiler.cpp index bf630abb5d83f..4720ad1015769 100644 --- a/perception/autoware_tensorrt_common/src/profiler.cpp +++ b/perception/autoware_tensorrt_common/src/profiler.cpp @@ -14,7 +14,10 @@ #include +#include #include +#include +#include namespace autoware {