Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shape_poly] Change lowering for shape polymorphism to simplify shape…
… refinement We insert a ConvertOp as the only use of an input argument in a shape polymorphic `main` function. This helps the downstream shape refinement because it will set the type of input arguments to static shapes, and this can invalidate the module if the argument appears as the result of a function, or if it appears as the input to a custom_call with output_operand_alias attribute. See b/287386268.
- Loading branch information
Showing
1 changed file
with
19 additions
and
16 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