Writing to a shared array in vmapped function #29371
-
Greetings |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
From what you describe, it seems the operation you have in mind is not expressible by
This does not sound like a batchwise operation, but rather an iterative operation, and so I suspect If you could put together a minimal example of the kind of operation you have in mind, we could probably give you some more specific help. |
Beta Was this translation helpful? Give feedback.
You would include the array to be updated within the
carry
of the scan, and then update it at each step, passing the updated copy to the next step. Does that make sense?