Skip to content

Commit 89aeb8f

Browse files
committed
fix: ivy.to_dlpack and ivy.from_dlpack with jax backend to reflect latest jax api
1 parent 3c657c1 commit 89aeb8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ivy/functional/backends/jax/creation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ def eye(
131131

132132

133133
def to_dlpack(x, /, *, out: Optional[JaxArray] = None):
134-
return jax.dlpack.to_dlpack(x)
134+
return x.__dlpack__()
135135

136136

137137
def from_dlpack(x, /, *, out: Optional[JaxArray] = None) -> JaxArray:
138-
return jax.dlpack.from_dlpack(x)
138+
return jnp.from_dlpack(x)
139139

140140

141141
def full(

0 commit comments

Comments
 (0)