[LLM] IPEX import support bigdl-core-xe-21 (#9769)

Add support for bigdl-core-xe-21.
This commit is contained in:
Qiyuan Gong 2023-12-28 15:23:58 +08:00 committed by GitHub
parent a8baf68865
commit f0f9d45eac

View file

@ -35,10 +35,19 @@ class IPEXImporter:
"""
# Check if xpu version installed
try:
# Check if bigdl-core-xe is installed
distribution('bigdl-core-xe')
return True
except PackageNotFoundError:
return False
# bigdl-core-xe not found
# Check if bigdl-core-xe-21 is installed
try:
distribution('bigdl-core-xe-21')
return True
except PackageNotFoundError:
# bigdl-core-xe not found
return False
return False
def import_ipex(self):
"""