Skip to content

Commit 0010f50

Browse files
committed
bug fix
Signed-off-by: chensuyue <[email protected]>
1 parent 78f0fb6 commit 0010f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural_compressor/torch/utils/environ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def is_package_available(package_name):
4646
## check hpex
4747
if is_package_available("habana_frameworks"):
4848
_hpex_available = True
49+
import habana_frameworks.torch.hpex # pylint: disable=E0401
4950
else:
5051
_hpex_available = False
5152

@@ -57,7 +58,6 @@ def is_hpex_available():
5758
## check ipex
5859
if is_package_available("intel_extension_for_pytorch"):
5960
_ipex_available = True
60-
import habana_frameworks.torch.hpex # pylint: disable=E0401
6161
else:
6262
_ipex_available = False
6363

0 commit comments

Comments
 (0)