-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingquestionQuestions for the JAX teamQuestions for the JAX team
Description
numpy.ndarray
instances currently return True
if you run an isinstance
check against jax.numpy.ndarray
. I guess I see how this happens: I think Jax doesn't actually use that type, so it's maybe the actual one from numpy? It's a bit of a hassle when you're checking the array provenances though.
def test_numpy_ndarray_is_not_instance_of_jax_numpy_ndarray():
assert not isinstance(numpy.zeros(1), jax.numpy.ndarray)
Btw, what's the preferred way to convert data from Jax to numpy? I've found jax.device_get()
by poking around, but I don't think it's documented.
Thanks for the great project!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionQuestions for the JAX teamQuestions for the JAX team