Skip to content

Commit ca47d17

Browse files
[NPUW] Fix DQ not applying due to reference (openvinotoolkit#29002)
Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
1 parent 0c2d50e commit ca47d17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ std::optional<NPUDesc> extract_npu_descriptor(const std::shared_ptr<const ov::IP
415415
const std::string arch = plugin->get_property(ov::device::architecture.name(), ov::AnyMap{}).as<std::string>();
416416
const int64_t max_tiles = plugin->get_property(ov::intel_npu::max_tiles.name(), ov::AnyMap{}).as<int64_t>();
417417
bool compiler_dq = false;
418-
const auto& supported_properties =
418+
// Don't use reference here!
419+
const auto supported_properties =
419420
plugin->get_property(ov::supported_properties.name(), ov::AnyMap{}).as<std::vector<ov::PropertyName>>();
420421
if (std::find(supported_properties.begin(), supported_properties.end(), "NPU_COMPILER_DYNAMIC_QUANTIZATION") !=
421422
supported_properties.end()) {

0 commit comments

Comments
 (0)