From c9d6f6335c8dab41b5ad194f4f9e049f9b9c4e4b Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Fri, 24 Jul 2020 11:00:04 +0800 Subject: [PATCH] Remove useless warning in executor #25692 --- python/paddle/fluid/executor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index f6cca91374e..23ab436c063 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1079,9 +1079,6 @@ class Executor(object): use_prune=use_prune, return_merged=return_merged) except Exception as e: - if not isinstance(e, core.EOFException): - warnings.warn( - "The following exception is not an EOF exception.") six.reraise(*sys.exc_info()) def _run_impl(self, program, feed, fetch_list, feed_var_name, -- GitLab