Skip to content

Commit

Permalink
let util function cast everything to float64
Browse files Browse the repository at this point in the history
  • Loading branch information
selmanozleyen committed Nov 27, 2024
1 parent aa593c6 commit b47be25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moscot/backends/ott/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def ensure_2d(arr: ArrayLike, *, reshape: bool = False) -> jax.Array:
return jnp.reshape(arr, (-1, 1))
if arr.ndim != 2:
raise ValueError(f"Expected array to have 2 dimensions, found `{arr.ndim}`.")
return arr
return arr.astype(jnp.float64)


def convert_scipy_sparse(arr: Union[sp.spmatrix, jesp.BCOO]) -> jesp.BCOO:
Expand Down

0 comments on commit b47be25

Please sign in to comment.