未验证 提交 e7f205ec 编写于 作者: K kuizhiqing 提交者: GitHub

[launch] fix typos (#41190)

上级 00d23897
......@@ -142,4 +142,4 @@ class Device(object):
if __name__ == '__main__':
d = Device.parse_device()
print(d.get_selected_flag())
print(d.get_selected_devices())
......@@ -93,7 +93,7 @@ class CollectiveController(Controller):
"PADDLE_RANK_IN_NODE": str(i),
}
if self.pod.replicas == 1:
e.update({selected_dev_key: selected_dev_list})
e.update({selected_dev_key: ",".join(selected_dev_list)})
else:
e.update({selected_dev_key: selected_dev_list[i]})
self.add_container(envs=e, log_tag=i)
......@@ -134,7 +134,7 @@ class CollectiveElasticController(CollectiveController):
if ok:
self.job.replicas = replicas
else:
self.ctx.logger.warnning("peer not ready {}".format(self.job))
self.ctx.logger.warning("peer not ready {}".format(self.job))
break
self.ctx.logger.debug("Run {}".format(self.job))
......
......@@ -162,7 +162,7 @@ class Container(object):
if idx > lines:
break
finally:
return self._log_handler.tell()
return
def tail(self, length=3000):
if not self._log_handler:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册