提交 59f4df30 编写于 作者: T tangwei

fix bug

上级 cd1c7933
......@@ -43,12 +43,8 @@ class ClusterTrainer(TranspileTrainer):
self.regist_context_processor('terminal_pass', self.terminal)
def build_strategy(self):
mode = envs.get_global_env("train.strategy.mode")
if mode is None:
mode = envs.get_runtime_envion("train.strategy.mode")
assert mode is not None
mode = envs.get_runtime_envion("trainer.strategy")
assert mode in ["async", "geo", "sync", "half_async"]
strategy = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册