Skip to content

Commit

Permalink
Add IntScalar type
Browse files Browse the repository at this point in the history
  • Loading branch information
gileshd committed Oct 16, 2024
1 parent 75205f8 commit 42c5c22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dynamax/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import Union
from jaxtyping import Array, Float
from jaxtyping import Array, Float, Int

PRNGKeyT = Array

Scalar = Union[float, Float[Array, ""]] # python float or scalar jax device array with dtype float

IntScalar = Union[int, Int[Array, ""]]

0 comments on commit 42c5c22

Please sign in to comment.