SDNQ set NPU as the default for CPU + OpenVINO

This commit is contained in:
Disty0
2026-06-21 03:37:02 +03:00
parent 3cda283bd4
commit 2c7924ad3e
+1 -1
View File
@@ -6,7 +6,7 @@ from openvino.properties import hint as ov_hints
core = ov.Core()
OV_DEVICE: str = os.environ.get("SDNQ_OPENVINO_DEVICE", "CPU")
OV_DEVICE: str = os.environ.get("SDNQ_OPENVINO_DEVICE", "HETERO:NPU,CPU" if "NPU" in core.get_available_devices() else "CPU")
OV_COMPILED_CACHE: dict[tuple[str, tuple[int,int] | None, str, tuple[int,int] | None], tuple[ov.InferRequest, str]] = {}
if OV_DEVICE == "NPU":