Skip to content

Commit 75bbf24

Browse files
kobayu858chtseng
authored and
chtseng
committed
fix(tensorrt_common): fix constParameterReference (autowarefoundation#8037)
* fix:constParameterReference Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:constParameterReference Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> Signed-off-by: chtseng <chtseng@itri.org.tw>
1 parent 32d046c commit 75bbf24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/tensorrt_common/include/tensorrt_common/simple_profiler.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SimpleProfiler : public nvinfer1::IProfiler
5858

5959
void setProfDict(nvinfer1::ILayer * layer) noexcept;
6060

61-
friend std::ostream & operator<<(std::ostream & out, SimpleProfiler & value);
61+
friend std::ostream & operator<<(std::ostream & out, const SimpleProfiler & value);
6262

6363
private:
6464
std::string m_name;

common/tensorrt_common/src/simple_profiler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void SimpleProfiler::setProfDict(nvinfer1::ILayer * layer) noexcept
7878
}
7979
}
8080

81-
std::ostream & operator<<(std::ostream & out, SimpleProfiler & value)
81+
std::ostream & operator<<(std::ostream & out, const SimpleProfiler & value)
8282
{
8383
out << "========== " << value.m_name << " profile ==========" << std::endl;
8484
float totalTime = 0;

0 commit comments

Comments
 (0)