Skip to content

Commit a53b15d

Browse files
str(os.cpu_count())
1 parent 7031726 commit a53b15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __bootstrap__():
168168
os.environ['NVIDIA_TF32_OVERRIDE'] = '0'
169169

170170
if os.getenv('MKL_NUM_THREADS', None) is None:
171-
os.environ['MKL_NUM_THREADS'] = os.cpu_count()
171+
os.environ['MKL_NUM_THREADS'] = str(os.cpu_count())
172172

173173
flag_prefix = "FLAGS_"
174174
read_env_flags = [

0 commit comments

Comments
 (0)