From df5aff80bed93b34171e86988a228bc41e66f2e1 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Thu, 1 Apr 2021 06:32:20 -0500 Subject: [PATCH] fix typo in spawn (#32017) --- python/paddle/distributed/spawn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/distributed/spawn.py b/python/paddle/distributed/spawn.py index 56e59ac88e..bf49604a89 100644 --- a/python/paddle/distributed/spawn.py +++ b/python/paddle/distributed/spawn.py @@ -303,8 +303,8 @@ class MultiprocessContext(object): raise Exception("Process %d terminated with signal %s." % (error_index, name)) else: - raise Exception("Process %d terminated with exit code %d." & ( - error_index, exitcode)) + raise Exception("Process %d terminated with exit code %d." % + (error_index, exitcode)) original_trace = self.error_queues[error_index].get() msg = "\n\n----------------------------------------------\n" \ -- GitLab