未验证 提交 ebae6fb6 编写于 作者: X xujiaqi01 提交者: GitHub

fix gen_worker_desc in hogwild (#23423)

* fix gen_worker_desc in hogwild, it may cause error in transpile mode
* test=develop
上级 a2e10930
...@@ -97,7 +97,8 @@ class Hogwild(DeviceWorker): ...@@ -97,7 +97,8 @@ class Hogwild(DeviceWorker):
print("program of current device worker is not configured") print("program of current device worker is not configured")
exit(-1) exit(-1)
opt_info = self._program._fleet_opt opt_info = self._program._fleet_opt
if opt_info is None: # when opt_info is None or empty dict, it should return
if not opt_info:
return return
program_configs = opt_info["program_configs"] program_configs = opt_info["program_configs"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册