Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index trajectories at particular index from buffer #37

Open
shariqfz opened this issue Sep 13, 2024 · 1 comment
Open

Index trajectories at particular index from buffer #37

shariqfz opened this issue Sep 13, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@shariqfz
Copy link

shariqfz commented Sep 13, 2024

Can we get trajectories at particular index from the TrajectoryBuffer or ItemBuffer. Something like buffer.get_trajectory(state, trajectory_index), since buffer.sample(state, rng_key) returns a random slice from the buffer.

@shariqfz shariqfz added the enhancement New feature or request label Sep 13, 2024
@EdanToledo
Copy link
Contributor

You would have to specify the batch index as well as the starting time index but this is pretty easy functionality to add.

@EdanToledo EdanToledo added the good first issue Good for newcomers label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants