ray.rllib.core.learner.learner_group.LearnerGroup.foreach_learner#

LearnerGroup.foreach_learner(func: Callable[[Learner, Any | None], T], **kwargs) List[T][source]#

Calls the given function on each Learner L with the args: (L, **kwargs).

Parameters:

func – The function to call on each Learner L with (L, **kwargs).

Returns:

A list of size len(Learners) with the return values of all calls to func.