Fix auto importer for LNL release (#12175)

This commit is contained in:
Yuwen Hu 2024-10-10 15:17:43 +08:00 committed by GitHub
parent 535bee5381
commit 890662610b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,8 +112,13 @@ class IPEXImporter:
distribution('bigdl-core-xe-21') distribution('bigdl-core-xe-21')
return True return True
except PackageNotFoundError: except PackageNotFoundError:
# bigdl-core-xe not found # bigdl-core-xe & bigdl-core-xe-21 not found
return False # Check if bigdl-core-xe-23 is installed
try:
distribution('bigdl-core-xe-23')
return True
except PackageNotFoundError:
return False
return False return False
def import_ipex(self): def import_ipex(self):