Skip to content

Commit 29826d9

Browse files
committed
use direct import rather than transitive
1 parent 8cda845 commit 29826d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bitsandbytes/backends/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import importlib
1+
from importlib.metadata import metadata
22

33
from packaging import version
44
import torch
@@ -69,7 +69,7 @@ def get_gaudi_sw_version():
6969
"""
7070
try:
7171
# if we find the spec, examine the installed version
72-
plugin_metadata = importlib.metadata.metadata("habana-torch-plugin")
72+
plugin_metadata = metadata("habana-torch-plugin")
7373
plugin_version = plugin_metadata.get("Version")
7474
if plugin_version:
7575
gaudi_version = version.parse(plugin_version)

0 commit comments

Comments
 (0)