ray.rllib.core.learner.learner.Learner.set_state#

Learner.set_state(state: Dict[str, Any]) None[source]#

Sets the implementing class’ state to the given state dict.

If component keys are missing in state, these components of the implementing class will not be updated/set.

Parameters:

state – The state dict to restore the state from. Maps component keys to the corresponding subcomponent’s own state.