core#
Source code: tianshou/highlevel/module/core.py
- class ModuleFactory[source]#
Represents a factory for the creation of a torch module given an environment and target device.
- abstract create_module(envs: Environments, device: str | device) Module [source]#