Ring buffer in pytorch

Is there something in pytorch to speed up circular/ring buffers ?

I think it would be a good addition to torch.utils.data.

In RL is very common to collect observations and later sample from there.

2 Likes