torch-mlir/projects
Felix Schneider fb21a85874
[TorchToLinalg] Lower grouped conv2d to linalg Op with correct dimension ordering (#2623)
The linalg Op `linalg.conv_2d_ngchw_fgchw` had a bug where

1. Weights were accessed as G,F,C,H,W instead of as F,G,C,H,W
2. Output was accessed as N,F,G,H,W instead of as N,G,F,H,W

Now this has been fixed in
https://github.com/llvm/llvm-project/pull/73855 which broke the
torch-mlir lowering to that Op.

This patch switches lowering in torch-mlir to the newly introduced
`linalg.conv_2d_ngchw_gfchw` op which accesses weights in an order that
is compatible with PyTorch's memory layout.

Fix https://github.com/llvm/torch-mlir/issues/2622
2023-12-08 14:18:23 +01:00
..
jit_ir_common Breakup python pytorch deps (#2582) 2023-11-19 12:10:19 -08:00
ltc Breakup python pytorch deps (#2582) 2023-11-19 12:10:19 -08:00
pt1 [TorchToLinalg] Lower grouped conv2d to linalg Op with correct dimension ordering (#2623) 2023-12-08 14:18:23 +01:00
CMakeLists.txt Move TORCH_MLIR_USE_INSTALLED_PYTORCH to top-level. 2023-11-22 17:56:26 -08:00