dummy#
Source code: tianshou/env/worker/dummy.py
- class DummyEnvWorker(env_fn: Callable[[], Env])[source]#
Dummy worker used in sequential vector environments.
- send(action: ndarray | None, **kwargs: Any) None [source]#
Send action signal to low-level worker.
When action is None, it indicates sending “reset” signal; otherwise it indicates “step” signal. The paired return value from “recv” function is determined by such kind of different signal.
- static wait(workers: list[DummyEnvWorker], wait_num: int, timeout: float | None = None) list[DummyEnvWorker] [source]#
Given a list of workers, return those ready ones.