Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Nov 15, 2022
1 parent ea1bdc9 commit acb8ccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion diffrax/brownian/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def __init__(
key: "jax.random.PRNGKey",
):
self.shape = (
jax.ShapeDtypeStruct(shape, None) if is_tuple_of_ints(shape) else shape
jax.ShapeDtypeStruct(shape, jax.dtypes.canonicalize_dtype(None))
if is_tuple_of_ints(shape)
else shape
)
self.key = key
if any(
Expand Down
4 changes: 3 additions & 1 deletion diffrax/brownian/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def __init__(
self.t1 = t1
self.tol = tol
self.shape = (
jax.ShapeDtypeStruct(shape, None) if is_tuple_of_ints(shape) else shape
jax.ShapeDtypeStruct(shape, jax.dtypes.canonicalize_dtype(None))
if is_tuple_of_ints(shape)
else shape
)
if any(
not jnp.issubdtype(x.dtype, jnp.inexact)
Expand Down

0 comments on commit acb8ccd

Please sign in to comment.