ray.rllib.policy.policy.Policy.maybe_remove_time_dimension#

Policy.maybe_remove_time_dimension(input_dict: Dict[str, numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor])[source]#

Removes a time dimension for recurrent RLModules.

Parameters:

input_dict – The input dict.

Returns:

The input dict with a possibly removed time dimension.