ray.rllib.core.rl_module.rl_module.RLModule.update_default_view_requirements#

RLModule.update_default_view_requirements(defaults: Dict[str, ViewRequirement]) Mapping[str, ViewRequirement][source]#

Updates default view requirements with the view requirements of this module.

This method should be called with view requirements that already contain information such as the given observation space, action space, etc. This method may then add additional shifts or state columns to the view requirements, or apply other changes.

Parameters:

defaults – The default view requirements to update.

Returns:

The updated view requirements.