Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arraycontext/impl/jax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _from_numpy(ary):
def to_numpy(self, array):
def _to_numpy(ary):
import jax
return jax.device_get(ary)
return np.copy(jax.device_get(ary))

return with_array_context(
self._rec_map_container(_to_numpy, array),
Expand Down