torch-mlir/lib/Conversion
Ramiro Leal-Cavazos 69d872b298 [LINALG] Fix linalg generic result type argument in TorchToLinalg
Some of the lowerings use the result type obtained from the op itself
to tell the `linalg::GenericOp` what the type of the result should be
rather than using the type of the result tensor given to the
`linalg::GenericOp`. This becomes a problem when the result type of
the op has static size information and the result tensor used in
`linalg::GenericOp` has dynamic dimensions, for `linalg::GenericOp`
expects the result type to be equal to the type of the output tensor.

This commit replaces the use of the result type from the op itself
with the type of the result tensor passed to `linalg::GenericOp`.

In order to not create too many dynamic/static versions of the same
e2e test, e2e tests have only been added to the ops that currently
fail when used with static sizes.
2022-02-12 03:33:48 +00:00
..
TorchToLinalg [LINALG] Fix linalg generic result type argument in TorchToLinalg 2022-02-12 03:33:48 +00:00
TorchToSCF Update external/llvm-project 2022-01-18 13:25:42 -05:00
TorchToStd [TORCH][MLIR] Add run-time assert support in Torch-dialect 2022-02-09 12:03:01 -05:00
TorchToTosa * [tosa] Support for AtenNativeLayerNormOp 2022-02-04 14:46:31 -05:00
CMakeLists.txt Add a basic TOSA E2E backend. 2021-10-08 09:59:45 -07:00
PassDetail.h Dual license the torch-mlir project. 2021-10-01 10:46:08 -07:00
Passes.cpp Add a basic TOSA E2E backend. 2021-10-08 09:59:45 -07:00