torch-mlir/lib/Conversion/TorchToTosa
Gaurav Shukla 1be604bfd3 [LINALG] Lower `aten.Matmul` to `linalg.BatchMatmul`
This commit lowers `aten.matmul` to `linalg.BatchMatmul` under the
following conditions:
1. The result of matrix multiplication must have batch dimensions,
   i.e., rank greater than 2.
2. The resultant matrix must have at most 1 dynamic batch dimension.

It also handles broadcasting of batch dimensions when batch dimensions
of the matrices are broadcastable.

Signed-Off-by: Gaurav Shukla <gaurav@nod-labs.com>
2022-06-25 10:58:06 +05:30
..
CMakeLists.txt Bump LLVM (#958) 2022-06-22 22:23:46 -05:00
TorchToTosa.cpp [LINALG] Lower `aten.Matmul` to `linalg.BatchMatmul` 2022-06-25 10:58:06 +05:30
TosaLegalizeCommon.cpp [tosa] Add Torch reduction operators 2021-12-03 09:01:48 -08:00
TosaLegalizeUtils.cpp [tosa] Implement conv2d support (#541) 2022-01-26 19:16:13 -08:00