Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ops with static shapes in PadTensorOpConversion if they're sta…
…tic (#5516) Currently, the mhlo.pad will be lowered to linalg.pad_tensor and then lowered to `linalg.init_tensor + linalg.fill + subtensor_insert`. The init_tensor op will produce a dynamic shape even if the shape is static. This leads a `tensor.cast` op added and relies on further patterns to fix them. This is not needed to static shape and will hit some issues related to #5385.
- Loading branch information