All-in-one Benchmark run.py: Ignore error if import BenchmarkWrapper failed. (#12526)

This commit is contained in:
Xu, Shuo 2024-12-11 16:20:55 +08:00 committed by GitHub
parent 41ef4974ab
commit fd9cf767ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,10 @@ current_dir = os.path.dirname(os.path.realpath(__file__))
import sys import sys
sys.stdout.reconfigure(encoding='utf-8') sys.stdout.reconfigure(encoding='utf-8')
from ipex_llm.utils import BenchmarkWrapper try:
from ipex_llm.utils import BenchmarkWrapper
except:
pass
from ipex_llm.utils.common.log4Error import invalidInputError from ipex_llm.utils.common.log4Error import invalidInputError
from ipex_llm.utils.common import invalidInputError from ipex_llm.utils.common import invalidInputError