From 972aee83080b9d1bb64ed1d8f0ef8b2266f32f1a Mon Sep 17 00:00:00 2001 From: Oliver Rausch Date: Wed, 21 Jul 2021 18:15:13 +0200 Subject: [PATCH] Fix GCC build error in quantization tests (#8449) --- onnxruntime/core/quantization/quantization.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/onnxruntime/core/quantization/quantization.h b/onnxruntime/core/quantization/quantization.h index 6d1e814b4e..834ac76fff 100644 --- a/onnxruntime/core/quantization/quantization.h +++ b/onnxruntime/core/quantization/quantization.h @@ -28,9 +28,7 @@ namespace quantization { template struct Params { public: - Params() { - Params(/*scale=*/0.0f, /*zero_point=*/0); - } + Params() : Params(/*scale=*/0.0f, /*zero_point=*/0) {} Params(float scale, T zero_point) : scale(scale), zero_point(zero_point) { ORT_STATIC_ASSERT_QUANTIZATION_TYPES(T)