ray.rllib.policy.policy.Policy.set_weights#

Policy.set_weights(weights: dict) None[source]#

Sets this Policy’s model’s weights.

Note: Model weights are only one part of a Policy’s state. Other state information contains: optimizer variables, exploration state, and global state vars such as the sampling timestep.

Parameters:

weights – Serializable copy or view of model weights.