Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Build fix for Visual Studio 2022 v17.8.22 (#33560)

Eric Palmer0df06cd0ee7f
diff --git a/src/common/transformations/src/transformations/common_optimizations/convert_quantize_dequantize.cpp b/src/common/transformations/src/transformations/common_optimizations/convert_quantize_dequantize.cpp
index 69ecf93d5fb..2f38385553c 100644
--- a/src/common/transformations/src/transformations/common_optimizations/convert_quantize_dequantize.cpp
+++ b/src/common/transformations/src/transformations/common_optimizations/convert_quantize_dequantize.cpp
@@ -134,17 +134,19 @@ ConvertQuantizeDequantize::ConvertQuantizeDequantize(const ov::element::TypeVect
if (!op_util::get_single_value(output_high, out_high_val))
return false;
-#define PRECISION_LIMITS_FOR(type) \
- {ov::element::type}, { \
- static_cast<float>(std::numeric_limits<ov::fundamental_type_for<ov::element::type>>::min()), \
- static_cast<float>(std::numeric_limits<ov::fundamental_type_for<ov::element::type>>::max()) \
+#define PRECISION_LIMITS_FOR(type) \
+ { \
+ ov::element::type, \
+ std::make_pair( \
+ static_cast<float>(std::numeric_limits<ov::fundamental_type_for<ov::element::type>>::min()), \
+ static_cast<float>(std::numeric_limits<ov::fundamental_type_for<ov::element::type>>::max())) \
}
static const std::unordered_map<ov::element::Type_t, std::pair<float, float>> supported_intervals{
- {PRECISION_LIMITS_FOR(i8)},
- {PRECISION_LIMITS_FOR(u8)},
- {PRECISION_LIMITS_FOR(i16)},
- {PRECISION_LIMITS_FOR(u16)}};
+ PRECISION_LIMITS_FOR(i8),
+ PRECISION_LIMITS_FOR(u8),
+ PRECISION_LIMITS_FOR(i16),
+ PRECISION_LIMITS_FOR(u16)};
#undef PRECISION_LIMITS_FOR
const auto& type = convert1.get_element_type();