提交 73d3502f 编写于 作者: T tangwei

add log hint for local cluster training

上级 a12ddf4b
...@@ -85,9 +85,8 @@ class LocalClusterEngine(Engine): ...@@ -85,9 +85,8 @@ class LocalClusterEngine(Engine):
if len(log_fns) > 0: if len(log_fns) > 0:
log_fns[i].close() log_fns[i].close()
procs[i].terminate() procs[i].terminate()
print("all workers already completed, you can view logs under the {} directory".format(logs_dir), print("all workers already completed, you can view logs under the `{}` directory".format(logs_dir),
file=sys.stderr) file=sys.stderr)
def run(self):
def run(self): self.start_procs()
self.start_procs()
...@@ -174,7 +174,6 @@ def get_abs_model(model): ...@@ -174,7 +174,6 @@ def get_abs_model(model):
fleet_base = envs.get_runtime_environ("PACKAGE_BASE") fleet_base = envs.get_runtime_environ("PACKAGE_BASE")
workspace_dir = model.split("fleetrec.")[1].replace(".", "/") workspace_dir = model.split("fleetrec.")[1].replace(".", "/")
path = os.path.join(fleet_base, workspace_dir, "config.yaml") path = os.path.join(fleet_base, workspace_dir, "config.yaml")
print("use built-in config: {} for model: {}".format(model, path))
else: else:
if not os.path.isfile(model): if not os.path.isfile(model):
raise IOError("model config: {} invalid".format(model)) raise IOError("model config: {} invalid".format(model))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册