Fix GCC build error in quantization tests (#8449)

This commit is contained in:
Oliver Rausch 2021-07-21 18:15:13 +02:00 committed by GitHub
parent 7e2ecb2eeb
commit 972aee8308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,9 +28,7 @@ namespace quantization {
template <typename T>
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)