ray.rllib.core.rl_module.multi_rl_module.MultiRLModuleSpec.update#

MultiRLModuleSpec.update(other: MultiRLModuleSpec | RLModuleSpec, override: bool = False) None[source]#

Updates this spec with the other spec.

Traverses this MultiRLModuleSpec’s module_specs and updates them with the module specs from the other (Multi)RLModuleSpec.

Parameters:
  • other – The other spec to update this spec with.

  • override – Whether to override the existing module specs if they already exist. If False, they are only updated.