From 81824ff8c932bb0d35743182656efae0366be654 Mon Sep 17 00:00:00 2001 From: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:51:08 +0800 Subject: [PATCH] Fix stdout in all-in-one benchmark to utf-8 (#11772) --- python/llm/dev/benchmark/all-in-one/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/llm/dev/benchmark/all-in-one/run.py b/python/llm/dev/benchmark/all-in-one/run.py index 1b80fe63..18811051 100644 --- a/python/llm/dev/benchmark/all-in-one/run.py +++ b/python/llm/dev/benchmark/all-in-one/run.py @@ -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