Skip to content

Commit

Permalink
fix: be explicit about squeeze dim to avoid flattening (1,1) arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
callumtilbury committed Jun 14, 2024
1 parent b556e15 commit 2830156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashbax/buffers/sum_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def stratified_sample(
)

return jax.vmap(sample, in_axes=(None, None, 0))(
state, None, query_values.squeeze()
state, None, query_values.squeeze(axis=-1)
)


Expand Down

0 comments on commit 2830156

Please sign in to comment.