提交 c1a4a6b8 编写于 作者: M malin10

bug fix for ci

上级 339ce4ac
......@@ -359,6 +359,7 @@ class SingleRunner(RunnerBase):
_str = metrics[key].cal_global_metrics(
None,
context["model"][model_dict["name"]]["scope"])
metrics_result.append(_str)
elif result is not None:
_str = "{}={}".format(key, result[key])
metrics_result.append(_str)
......@@ -406,6 +407,7 @@ class PSRunner(RunnerBase):
_str = metrics[key].cal_global_metrics(
context["fleet"],
context["model"][model_dict["name"]]["scope"])
metrics_result.append(_str)
elif result is not None:
_str = "{}={}".format(key, result[key])
metrics_result.append(_str)
......@@ -537,6 +539,7 @@ class SingleInferRunner(RunnerBase):
_str = metrics[key].cal_global_metrics(
None,
context["model"][model_dict["name"]]["scope"])
metrics_result.append(_str)
elif result is not None:
_str = "{}={}".format(key, result[key])
metrics_result.append(_str)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册