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.
1 parent 78f0fb6 commit 0010f50Copy full SHA for 0010f50
neural_compressor/torch/utils/environ.py
@@ -46,6 +46,7 @@ def is_package_available(package_name):
46
## check hpex
47
if is_package_available("habana_frameworks"):
48
_hpex_available = True
49
+ import habana_frameworks.torch.hpex # pylint: disable=E0401
50
else:
51
_hpex_available = False
52
@@ -57,7 +58,6 @@ def is_hpex_available():
57
58
## check ipex
59
if is_package_available("intel_extension_for_pytorch"):
60
_ipex_available = True
- import habana_frameworks.torch.hpex # pylint: disable=E0401
61
62
_ipex_available = False
63
0 commit comments