ray.rllib.core.rl_module.marl_module.MultiAgentRLModule.foreach_module#

MultiAgentRLModule.foreach_module(func: Callable[[str, RLModule, Any | None], T], **kwargs) List[T][source]#

Calls the given function with each (module_id, module).

Parameters:

func – The function to call with each (module_id, module) tuple.

Returns:

The lsit of return values of all calls to func([module_id, module, **kwargs]).