mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-10 11:40:58 +08:00
Refine API
This commit is contained in:
@@ -119,7 +119,7 @@ class Bullet(BaseTask):
|
||||
return BaseTask.step(self, np.clip(action, -1, 1))
|
||||
|
||||
class ProcessTask:
|
||||
def __init__(self, task_fn, log_dir):
|
||||
def __init__(self, task_fn, log_dir=None):
|
||||
self.pipe, worker_pipe = mp.Pipe()
|
||||
self.worker = ProcessWrapper(worker_pipe, task_fn, log_dir)
|
||||
self.worker.start()
|
||||
|
||||
Reference in New Issue
Block a user