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
Currently if a user has an input tensor that writes to the same output tensor this is fine as long as the element-wise operation doesn't change index positions. All scalar operators follow this pattern. However, for operators that change the output index, writing to the same buffer causes a race condition:
(a = fftshift1D(a)).run();
We need to do one of two things:
Raise an error when this situation occurs
Async-allocate memory to temporarily do the transform and make a copy afterwards.
2 is preferred because the user would have to do this anyways if they were to implement it themselves.