def __post_init__(self): """ Adjusts initial values where necessary. """ if self.concurrency <= 0: self.concurrency = query_cpu() if self.eval_concurrency <= 0: self.eval_concurrency = query_cpu()
def __init__(self, action_spaces_dict: Dict[Union[str, int], spaces.Space], concurrency: int): super().__init__(action_spaces_dict) self.concurrency = concurrency if concurrency > 0 else query_cpu()