We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9834be2 + 7d7b10a commit 0ee7989Copy full SHA for 0ee7989
gimpopenvino/plugins/openvino_utils/tools/model_manager.py
@@ -320,7 +320,12 @@ def get_npu_architecture(core):
320
available_devices = core.get_available_devices()
321
if 'NPU' in available_devices:
322
architecture = core.get_property('NPU', 'DEVICE_ARCHITECTURE')
323
- return NPU_ARCH_3720 if NPU_ARCH_3720 in architecture else NPU_ARCH_4000
+ if NPU_ARCH_3720 in architecture:
324
+ return NPU_ARCH_3720
325
+ elif NPU_ARCH_4000 in architecture:
326
+ return NPU_ARCH_4000
327
+ return None
328
+
329
except Exception as e:
330
logging.error(f"Error retrieving NPU architecture: {str(e)}")
331
return None
0 commit comments