From fd9cf767eda91bb295e105ff94c0252a029f85ec Mon Sep 17 00:00:00 2001 From: "Xu, Shuo" <100334393+ATMxsp01@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:20:55 +0800 Subject: [PATCH] All-in-one Benchmark run.py: Ignore error if import BenchmarkWrapper failed. (#12526) --- python/llm/dev/benchmark/all-in-one/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/llm/dev/benchmark/all-in-one/run.py b/python/llm/dev/benchmark/all-in-one/run.py index b8aa8cb7119..be02721e59d 100644 --- a/python/llm/dev/benchmark/all-in-one/run.py +++ b/python/llm/dev/benchmark/all-in-one/run.py @@ -32,7 +32,10 @@ import sys 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 import invalidInputError