ray.rllib.policy.torch_policy_v2.TorchPolicyV2.restore_connectors#

TorchPolicyV2.restore_connectors(state: Dict[str, numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor | dict | tuple])#

Restore agent and action connectors if configs available.

Parameters:

state – The new state to set this policy to. Can be obtained by calling self.get_state().