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

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

上级 7b522183
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册