Rate this Page

collect_render_rollouts#

torchrl.render.collect_render_rollouts(env: Any, policy: Any, config: RenderConfig) RenderResult[source]#

Collects sequential render rollouts.

EnvBase environments are rolled out through rollout(); other environments fall back to a duck-typed reset/step loop. Captured frames span the initial state through the terminal state of each trajectory.

Parameters:
Returns:

A render result containing trajectories and in-memory frames.