Skip to content

Commit

Permalink
fix clever bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marmaduke woodman committed Feb 16, 2024
1 parent 2e178cc commit 601d62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vbjax/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def to_np(x: jax.numpy.ndarray) -> numpy.ndarray:
return numpy.array(x)
return numpy.from_dlpack(x)

def to_jax(*x: numpy.ndarray):
def to_jax(x: numpy.ndarray):
"Move NumPy array to JAX via DLPack."
x_dlp = x.__dlpack__()
x_jax: jax.numpy.ndarray = jax.dlpack.from_dlpack(x_dlp)
Expand Down

0 comments on commit 601d62e

Please sign in to comment.