hr0nix / dejax

Accelerated replay buffers in JAX
Apache License 2.0
39 stars 4 forks source link

Question: slicing #1

Open bheijden opened 1 year ago

bheijden commented 1 year ago

Hi,

Do you think it would be possible to implement the magic method __getitem__ for e.g. the circular buffer such that you can neatly index and slice as you would with any other array, instead of using the get_at_index method found here?

I'm not sure how these methods work in conjunction with jax transformations (jit, vmap, etc...)