You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test"transfers data from nx<->device"dofor_<-1..10000dot=Nx.tensor([1,2,3,4])
Then it fails with a 100% certainty for me. I think we are doing either one of:
When sending data to the device, we are using zero-copy (which we shouldn't, we should only do zero-copy on run, since we know the binary can't be GCed meanwhile)
When reading the data for a CPU device, we are pointing to a place in memory instead of allocating an Erlang binary (unlikely?)
The text was updated successfully, but these errors were encountered:
If you wrap the contents of this test in a for:
https://github.com/elixir-nx/exla/blob/main/test/exla/nx_device_test.exs#L4
Like this:
Then it fails with a 100% certainty for me. I think we are doing either one of:
When sending data to the device, we are using zero-copy (which we shouldn't, we should only do zero-copy on run, since we know the binary can't be GCed meanwhile)
When reading the data for a CPU device, we are pointing to a place in memory instead of allocating an Erlang binary (unlikely?)
The text was updated successfully, but these errors were encountered: