mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
SDNQ set NPU as the default for CPU + OpenVINO
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user