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
The problem is the following. When f finishes executing, it returns a numpy array of zeros. That array is stored in the object store.
When you call ray.get to get the array, the array is still stored in the object store (in particular, it is not copied into the Python processes heap). Objects in the object store are immutable, and so the array values cannot be changed.
If you wish to change the array values, then you'll need to create a copy of the array locally and mutate that one. For example, the following should work.
The following fails.
The last line fails with the following error.
If instead of
x[0] = 1
I dox += np.ones(100)
it fails with the following error.The text was updated successfully, but these errors were encountered: