Skip to content

Commit

Permalink
Merge pull request #20 from instadeepai/fix/incorrect-current-index
Browse files Browse the repository at this point in the history
fix: incorrect current index.
  • Loading branch information
callumtilbury committed Feb 28, 2024
2 parents ea1288c + fa998c6 commit 62abedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashbax/vault/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,6 @@ def read(
# Return the read result as a fbx buffer state
return TrajectoryBufferState(
experience=read_result,
current_index=jnp.array(self.vault_index, dtype=int),
current_index=jnp.array(0, dtype=int),
is_full=jnp.array(True, dtype=bool),
)

0 comments on commit 62abedd

Please sign in to comment.