ray.rllib.core.learner.learner.Learner.add_module
ray.rllib.core.learner.learner.Learner.add_module#
- Learner.add_module(*, module_id: str, module_spec: ray.rllib.core.rl_module.rl_module.SingleAgentRLModuleSpec) None[source]#
Add a module to the underlying MultiAgentRLModule and the Learner.
- Parameters
module_id – The id of the module to add.
module_spec – The module spec of the module to add.