Skip to content

Commit d8019e5

Browse files
committed
cosmetic
1 parent bf986cf commit d8019e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

array_api_compat/common/_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ def to_device(x: Array, device: Device, /, *, stream: Optional[Union[int, Any]]
776776
if not hasattr(x, "__array_namespace__"):
777777
# In JAX v0.4.31 and older, this import adds to_device method to x.
778778
import jax.experimental.array_api # noqa: F401
779+
return x.to_device(device, stream=stream)
779780
elif is_pydata_sparse_array(x) and device == _device(x):
780781
# Perform trivial check to return the same array if
781782
# device is same instead of err-ing.

0 commit comments

Comments
 (0)