Skip to content

Commit 996336f

Browse files
authored
fix(autoware_tensorrt_classifier): fix clang errors (#9508)
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 4c918a2 commit 996336f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

perception/autoware_tensorrt_classifier/include/autoware/tensorrt_classifier/calibrator.hpp

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

273-
double getQuantile() const noexcept
273+
double getQuantile() const noexcept override
274274
{
275275
printf("Quantile %f\n", m_quantile);
276276
return m_quantile;
277277
}
278278

279-
double getRegressionCutoff(void) const noexcept
279+
double getRegressionCutoff(void) const noexcept override
280280
{
281281
printf("Cutoff %f\n", m_cutoff);
282282
return m_cutoff;
283283
}
284284

285-
const void * readHistogramCache(std::size_t & length) noexcept
285+
const void * readHistogramCache(std::size_t & length) noexcept override
286286
{
287287
hist_cache_.clear();
288288
std::ifstream input(histogram_cache_file_, std::ios::binary);
@@ -301,7 +301,7 @@ class Int8LegacyCalibrator : public nvinfer1::IInt8LegacyCalibrator
301301
}
302302
return length ? &hist_cache_[0] : nullptr;
303303
}
304-
void writeHistogramCache(void const * ptr, std::size_t length) noexcept
304+
void writeHistogramCache(void const * ptr, std::size_t length) noexcept override
305305
{
306306
std::ofstream output(histogram_cache_file_, std::ios::binary);
307307
output.write(reinterpret_cast<const char *>(ptr), length);

perception/autoware_tensorrt_classifier/include/autoware/tensorrt_classifier/tensorrt_classifier.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class TrtClassifier
107107
std::vector<float> input_h_;
108108
CudaUniquePtr<float[]> input_d_;
109109

110-
bool needs_output_decode_;
111110
size_t out_elem_num_;
112111
size_t out_elem_num_per_batch_;
113112
CudaUniquePtr<float[]> out_prob_d_;

0 commit comments

Comments
 (0)