-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LinalgExt] Fusion support for LinalgExt ScatterOp 1/3 (#19560)
These changes are needed to be able to propagate reshapes and fold unit dimensions. This essentially changes `scatter` to be more closely in line with [tf.tensor_scatter_nd_update](https://www.tensorflow.org/api_docs/python/tf/tensor_scatter_nd_update) except with a `dimension_map` (side note: the linked tensorflow docs have a really good explanation of the op). This also removes support for non-contiguous scatters because the slice must be right justified (along the innermost dimensions of `updates` and `original`) to prevent ambiguity around how to index `original` and how to scatter `updates`. #### Overview: - Update verifier to handle multiple batch dimensions. Restrict `dimension_map` to allow indexing only of the outermost dimensions, ensuring slices are inserted contiguously. - Fix `TilingInterfaceImpl` to support multiple "batch" dimensions and added test cases to `convert_to_loops.mlir` and `tiling.mlir` - Fix `ScatterOp` description to align with verifier - Add new test cases for `ScatterOp` and remove a few that are no longer supported. --------- Signed-off-by: Ian Wood <[email protected]>
- Loading branch information
Showing
10 changed files
with
515 additions
and
187 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
Oops, something went wrong.