Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drjax/_src/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _batch_agg(xs, batched_shape):
# Certain jax libs can silently insert the 'batching' dim 'all the way at
# the front'; we are about to destroy the front axis by agging, so move
# that puppy to the back. Tell the rest of JAX what happened here.
xs = batching.moveaxis(*xs, *batched_shape, -1)
xs = jnp.moveaxis(*xs, *batched_shape, -1)
return agg_prim_fn(xs), len(xs.shape) - 2

# Make sure this can also be batched / mapped. This happens when dispatching
Expand Down
Loading