-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
| p = Process(target=self.solver_func, args=(q, arm, n_units)) |
What is the purpose of opening 1 process if you're blocked until that process ends?
Why not simply
def solver_func(self,arm,n_units):
trainer = DartsTrainer(arm)
trainer.epoch = arm['epochs']
return trainer.train_epochs(n_units)
def run_solver(self, arm, n_units):
n_units = max(n_units - arm['epochs'], 0)
logging.info('Training arm %d for %d epochs' % (arm['seed'], n_units))
result = self.solver_func(arm, n_units))
arm['epochs'] += n_units
return results[0], results[1], results[2]
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels