Skip to content

Commit

Permalink
fix(autoware_tensorrt_yolox): fix clang-diagnostic-inconsistent-missi…
Browse files Browse the repository at this point in the history
…ng-override (#9512)

fix: clang-diagnostic-inconsistent-missing-override

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Nov 28, 2024
1 parent d240d2e commit fdc7a55
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,19 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator
output.write(reinterpret_cast<const char *>(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);
Expand All @@ -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<const char *>(ptr), length);
Expand Down

0 comments on commit fdc7a55

Please sign in to comment.