torch-mlir/lib/Dialect/Torch
James Newling 1b7d6f2af9
Improve decomposition of pixel_shuffle (support dynamic shapes) (#2590)
The aten.reshape ops in the decomposition are replaced with prims.collapse 
and prims.split_dim ops, which means that the cases where the lowering of
reshape from torch to linalg which are not supported, are avoided.

Essentially, by using the collapse and split_dim ops instead of the
reshape ops, we are not "losing" the information that the reshapes do not
arbitrarily mix dimensions. Which makes lowering easy. 

3 additional tests added: 
- fully dynamic, 
- dynamic only the spatial dimensions, 
- dynamic only in the non-spatial dimensions.
2023-11-22 12:31:06 -08:00
..
IR [MLIR][TORCH] Add support for unsigned integer types 2023-11-21 21:57:26 +05:30
Transforms Improve decomposition of pixel_shuffle (support dynamic shapes) (#2590) 2023-11-22 12:31:06 -08:00
Utils Lowering to linalg of prims split_dim op (#2576) 2023-11-21 07:56:09 -08:00
CMakeLists.txt E2e support for aten.softmax.int and aten.embedding 2021-10-18 17:57:45 -04:00