-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default the transformation uses some linearization followed by a delinearization approach, while this is needed to copy certain shapes, it is unnecessarily complicated for memlets such as `a[0:10, 20:30] -> 40:50, 60:70`. This PR adds special cases where the source and destination subset has the same size and transforms it to a simple copy. It also supports the case where some dimensions are one, i.e. memlets such as `a[0:10, 0:10] -> 0:10, 1, 0:20`. For all cases tests were added. Most importantly the transformation now applies if the strides are the same. Before this case was blocked. This PR helps to _avoid_ errors that are related to [Issue#1674](#1674), but it is not a fix or a solution to it.
- Loading branch information
1 parent
3c164c4
commit 1343a6e
Showing
2 changed files
with
229 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters