Skip to content

Commit

Permalink
wip(hsgp): switch typing to jax.Array
Browse files Browse the repository at this point in the history
should probably do this everywhere, add reference to jax typing user guide
  • Loading branch information
brendancooley committed Jun 12, 2024
1 parent bb0bc47 commit ef4a24b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpyro/contrib/hsgp/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Union

import jax
from jaxlib.xla_extension import ArrayImpl
import numpy as np

ARRAY_TYPE = Union[ArrayImpl, np.ndarray]
ARRAY_TYPE = Union[jax.Array, np.ndarray] # jax.Array covers tracers

0 comments on commit ef4a24b

Please sign in to comment.