Skip to content

Commit 4b653c8

Browse files
Remove empty arg/kwargs from es_trainer_lib
This just passed empty strings which meant that implemented workers needed to accept these arguments for no reason. We should not be passing any arguments and let all the configuration on the worker side happen through gin. Reviewers: mtrofin Reviewed By: mtrofin Pull Request: #432
1 parent 547903f commit 4b653c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler_opt/es/es_trainer_lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ def train(additional_compilation_flags=(),
215215
learner_config.total_steps)
216216

217217
with local_worker_manager.LocalWorkerPoolManager(
218-
worker_class, learner_config.total_num_perturbations, arg="",
219-
kwarg="") as pool:
218+
worker_class, learner_config.total_num_perturbations) as pool:
220219
for _ in range(learner_config.total_steps):
221220
learner.run_step(pool)
222221

0 commit comments

Comments
 (0)