-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inductor] Decompose diagonal_copy and diagonal_scatter
This decomposes `diagonal_copy` into `as_strided_copy` and `diagonal_scatter` into `as_strided_scatter`. Currently these are decomposed into mutations, which can't be used by inductor because the `_scatter` and `_copy` variants are output by functionalization to remove mutations from the graph. So by re-introducing mutations in their decomposition, we break the assumptions of the graph. ghstack-source-id: 5b6b8ef2fc3dd6439fc90af744324610bf2b4fa1 Pull Request resolved: #103755
- Loading branch information
1 parent
2d745b9
commit fca717a
Showing
3 changed files
with
61 additions
and
29 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
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