ray.rllib.core.learner.learner.Learner.set_state
ray.rllib.core.learner.learner.Learner.set_state#
- Learner.set_state(state: Mapping[str, Any]) None[source]#
Set the state of the learner.
- Parameters
state – The state of the optimizer and module. Can be obtained from
get_state. State is a dictionary with two keys: “module_state” and “optimizer_state”. The value of each key is a dictionary that can be passed toset_module_stateandset_optimizer_staterespectively.