未验证 提交 a3851278 编写于 作者: C Chen Weihang 提交者: GitHub

remove train eval set in static runner, test=develop (#23835)

上级 ba5fa2c2
...@@ -198,14 +198,10 @@ class StaticModelRunner(layers.Layer): ...@@ -198,14 +198,10 @@ class StaticModelRunner(layers.Layer):
self._recheck_stop_gradients() self._recheck_stop_gradients()
def train(self): def train(self):
# TODO: remove global train_mode setting
framework._dygraph_tracer().train_mode()
self._is_test = False self._is_test = False
self._change_is_test_status(False) self._change_is_test_status(False)
def eval(self): def eval(self):
# TODO: remove global train_mode setting
framework._dygraph_tracer().eval_mode()
self._is_test = True self._is_test = True
self._change_is_test_status(True) self._change_is_test_status(True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册