allocation domain propagation to support reshape operations #2235
Labels
allocation domain
issues related to allocation domain support
enhancement
New feature or request
on hold
This issue should be revisited in the future
allocation domain propagation should support reshape operations. @zasdfgbnm brought it up here: #2168 (comment)
Currently the propagation only maps exact iterdomains from sources to destinations. Handling reshape requires us to walk through the ValGraph and establish rules to map through split/merge/resize. Which might not be too bad to resolve if we are looking at the relationship between pair of source to destination. As @wujingyue suggested in the thread. @zasdfgbnm and @jacobhinkle were suggesting to establish a uniformed relationship table per fusion by traversing the IR. Which could used later by schedulers/segmenters to coherently establish allocation domain for boundary tensors.
I think the uniformed allocation domain sounds interesting but it's going to be hard(?!) to justify the approach at current stage. (how useful would it really be at solving problems at hand?)
Meanwhile the source to destination mapping seems like a low hanging fruit that I think can be relatively easy/quick to pull of. I'm not ruling out the alternative yet. Opening the issue here to track the progress as well as bookkeeping the alternative that we are not picking up at the moment.
The text was updated successfully, but these errors were encountered: