unilab.algos.torch.appo.staging.RolloutStagingPool¶
- class unilab.algos.torch.appo.staging.RolloutStagingPool[source]¶
Bases:
objectPreallocated learner-device storage for a bounded set of rollouts.
Raw IPC rollout slots are env-major: [N, T, …]. Learners consume time-major combined batches: [T, K*N, …]. The pool owns the destination tensors and exposes active views without rebuilding them via torch.cat.
- Parameters:
Methods
__init__(*, capacity, num_envs, slot_shapes, ...)batch()Return active learner-ready views backed by the staging pool.
stage_numpy_views(raw_views)Copy one raw shared-memory rollout into the next staging slot.
Attributes