fix gen_worker_desc in hogwild (#23423)

* fix gen_worker_desc in hogwild, it may cause error in transpile mode
* test=develop
revert-23830-2.0-beta
xujiaqi01 5 years ago committed by GitHub
parent a2e10930cf
commit ebae6fb6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]

Loading…
Cancel
Save