diff --git a/perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/calibrator.hpp b/perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/calibrator.hpp index 3a2bac315a3d0..46305b12c0de6 100644 --- a/perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/calibrator.hpp +++ b/perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/calibrator.hpp @@ -248,19 +248,19 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator output.write(reinterpret_cast(cache), length); } - double getQuantile() const noexcept + double getQuantile() const noexcept override { printf("Quantile %f\n", quantile_); return quantile_; } - double getRegressionCutoff(void) const noexcept + double getRegressionCutoff(void) const noexcept override { printf("Cutoff %f\n", cutoff_); return cutoff_; } - const void * readHistogramCache(std::size_t & length) noexcept + const void * readHistogramCache(std::size_t & length) noexcept override { hist_cache_.clear(); std::ifstream input(histogram_cache_file_, std::ios::binary); @@ -279,7 +279,7 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator } return length ? &hist_cache_[0] : nullptr; } - void writeHistogramCache(void const * ptr, std::size_t length) noexcept + void writeHistogramCache(void const * ptr, std::size_t length) noexcept override { std::ofstream output(histogram_cache_file_, std::ios::binary); output.write(reinterpret_cast(ptr), length);