Fix stdout in all-in-one benchmark to utf-8 (#11772)

This commit is contained in:
Yuwen Hu 2024-08-13 10:51:08 +08:00 committed by GitHub
parent a1eb793f70
commit 81824ff8c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,8 @@ from datetime import date
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
import sys
sys.stdout.reconfigure(encoding='utf-8')
from ipex_llm.utils import BenchmarkWrapper
from ipex_llm.utils.common.log4Error import invalidInputError
from ipex_llm.utils.common import invalidInputError