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
3 changes: 2 additions & 1 deletion tesseract_jax/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections.abc import Sequence
from typing import Any, TypeVar

import jax.numpy as jnp
import jax.tree
import numpy as np
from jax import ShapeDtypeStruct, dtypes, extend
Expand Down Expand Up @@ -246,7 +247,7 @@ def tesseract_dispatch_batching(
) -> Any:
"""Defines how to dispatch batch operations such as vmap (which is used by jax.jacobian)."""
new_args = [
arg if ax is batching.not_mapped else batching.moveaxis(arg, ax, 0)
arg if ax is batching.not_mapped else jnp.moveaxis(arg, ax, 0)
for arg, ax in zip(array_args, axes, strict=True)
]

Expand Down
Loading