torch-mlir/lib
Stella Laurenzo 00efec0b73
[linalg] Implement strict mode lowering for aten.view. (#3319)
* Enables assume_strict_symbolic_shapes on fx_importer imported
programs, indicating strict shape semantics.
* Reworks the view->reshape lowering to take advantage of strict mode
and do one of:
  * Collapse to 0D
  * Flatten/Unflatten when there is an inferred dim.
  * Fallback to tensor.reshape
* Splits some test cases up and adds an attribute to control the old
pattern (so new corners can be tested in strict mode in isolation).
* Dynamic inferred mode needs upstream work to generalize expand_shape
(so that case is suppressed here).
* Deletes the assert from the existing tensor.reshape lowering if strict
shape mode is enabled (since the condition it is dynamically asserting
cannot happen).
2024-05-10 13:45:50 -07:00
..
CAPI Clang format refresh (#2812) 2024-01-29 12:59:33 -05:00
Conversion [linalg] Implement strict mode lowering for aten.view. (#3319) 2024-05-10 13:45:50 -07:00
Dialect MaxPool1d lowering to linalg (#3295) 2024-05-10 22:05:26 +05:30
RefBackend Fix deprecated uses of cast/dyn_cast/dyn_cast_or_null/isa (#3243) 2024-04-27 14:00:56 -07:00
CMakeLists.txt [Stablehlo] add stablehlo-aggressive-simplification in e2e test (#3109) 2024-04-07 10:48:11 +08:00
InitAll.cpp [Stablehlo] add stablehlo-aggressive-simplification in e2e test (#3109) 2024-04-07 10:48:11 +08:00