Can generators run in-place? #6324
-
What would happen if both |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Currently we actually do this.
In our schedule we do a compute_root on intermediate_buffers, You do need to take into account though that the auto-scheduler will probably not help you (as far as I know..). |
Beta Was this translation helpful? Give feedback.
Currently we actually do this.
However, you need to take this situation into account when creating your schedule.
Currently our solution is somewhat like the following:
In our schedule we do a compute_root on intermediate_buffers,
after which it is safe to write the output_buffers (which will actually overwrite the input_buffers).
You do need to take into account though that the auto-scheduler will probably not help you (as far as I know..).