Skip to content

Commit fdc7a55

Browse files
authored
fix(autoware_tensorrt_yolox): fix clang-diagnostic-inconsistent-missing-override (#9512)
fix: clang-diagnostic-inconsistent-missing-override Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent d240d2e commit fdc7a55

File tree

1 file changed

+4
-4
lines changed
  • perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox

1 file changed

+4
-4
lines changed

perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/calibrator.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,19 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator
248248
output.write(reinterpret_cast<const char *>(cache), length);
249249
}
250250

251-
double getQuantile() const noexcept
251+
double getQuantile() const noexcept override
252252
{
253253
printf("Quantile %f\n", quantile_);
254254
return quantile_;
255255
}
256256

257-
double getRegressionCutoff(void) const noexcept
257+
double getRegressionCutoff(void) const noexcept override
258258
{
259259
printf("Cutoff %f\n", cutoff_);
260260
return cutoff_;
261261
}
262262

263-
const void * readHistogramCache(std::size_t & length) noexcept
263+
const void * readHistogramCache(std::size_t & length) noexcept override
264264
{
265265
hist_cache_.clear();
266266
std::ifstream input(histogram_cache_file_, std::ios::binary);
@@ -279,7 +279,7 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator
279279
}
280280
return length ? &hist_cache_[0] : nullptr;
281281
}
282-
void writeHistogramCache(void const * ptr, std::size_t length) noexcept
282+
void writeHistogramCache(void const * ptr, std::size_t length) noexcept override
283283
{
284284
std::ofstream output(histogram_cache_file_, std::ios::binary);
285285
output.write(reinterpret_cast<const char *>(ptr), length);

0 commit comments

Comments
 (0)