Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[export] Add jax.global_constant MLIR attributes for dimension variab…
…le arguments In presence of shape polymorphism and multi-platorm lowering we pass the global values for the dimension variables and the platform index to all inner functions. At the moment, prior to compilation we run a shape refinement pass to infer which of the arguments of a function carry such global values. This inference can yield false positives, e.g., when a user-defined function is called with a constant int32 as the first argument. With this change we do not need to infer anymore the arguments that carry global constants. This is in preparation for a more reliable implementation of shape refinement.
- Loading branch information
Showing
5 changed files
with
101 additions
and
50 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
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