torch-mlir/test/Conversion
Stella Laurenzo 860be09a39
Elide dynamic broadcast checks when in strict symbolic shapes mode. (#2496)
When importing dynamic shaped programs from Dynamo, via torch.compile or
torch.export, we can assume that strict symbolic shape checks have been
done prior to generating torch IR. Among other shape checking, this
eliminates the case where an unknown dimension can be dynamically '1' in
a way that signals a broadcast.

Adds a `isAssumingStrictSymbolicShapes` utility which consults a
`torch.assume_strict_symbolic_shapes` attribute on an enclosing scope
and returns true if present.

In the linalg pipeline, many runtime checks are elided when this returns
true.
2023-09-29 16:45:48 -07:00
..
TorchConversionToMLProgram Minor fixes for `ConvertTorchConversionToMLProgram`. (#1991) 2023-04-04 09:09:58 -07:00
TorchToArith [Torch Dialect] add folder for aten.any.bool (#2388) 2023-08-30 17:29:03 +08:00
TorchToLinalg Elide dynamic broadcast checks when in strict symbolic shapes mode. (#2496) 2023-09-29 16:45:48 -07:00
TorchToSCF mlir: bump llvm tag to 5380e3 (#856) 2022-05-16 12:54:35 -07:00
TorchToStablehlo [Stablehlo] add converter for aten.scatter.src op (#2295) 2023-07-24 10:14:45 +08:00
TorchToTosa Integrate llvm-project and mlir-hlo. (#2454) 2023-09-12 15:09:57 -07:00