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

TorchPolicyV2.restore_connectors(state: Dict[str, Union[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().

PublicAPI (alpha): This API is in alpha and may change before becoming stable.