Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shape_poly] Add a polymorphic shape refinement MLIR pass accessible …
…to JAX Python. At the moment we can run the StableHLO module lowered by jax2tf with polymorphic shapes only with jax2tf, because the tf.XlaCallModule op has the necessary shape refinement logic (which is necessary to legalize the StableHLO module with dynamic shapes to MHLO). Here we expose the shape refinement MLIR transformation to JAX Python. For now this is used only in a test in jax_export_test.py. PiperOrigin-RevId: 537485288
- Loading branch information
Showing
1 changed file
with
80 additions
and
3 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