From a385127844fd834b01bac9b5377702366b0eeb18 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Wed, 15 Apr 2020 09:47:54 +0800 Subject: [PATCH] remove train eval set in static runner, test=develop (#23835) --- python/paddle/fluid/dygraph/static_runner.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/paddle/fluid/dygraph/static_runner.py b/python/paddle/fluid/dygraph/static_runner.py index 779bbdb73df..aff00b61e5c 100644 --- a/python/paddle/fluid/dygraph/static_runner.py +++ b/python/paddle/fluid/dygraph/static_runner.py @@ -198,14 +198,10 @@ class StaticModelRunner(layers.Layer): self._recheck_stop_gradients() def train(self): - # TODO: remove global train_mode setting - framework._dygraph_tracer().train_mode() self._is_test = False self._change_is_test_status(False) def eval(self): - # TODO: remove global train_mode setting - framework._dygraph_tracer().eval_mode() self._is_test = True self._change_is_test_status(True) -- GitLab