torch-mlir/lib
Ramiro Leal-Cavazos 730f5915bb Fix MaximizeValueSemantics handling of `torch.overwrite.tensor` op
This commit fixes an issue with the way that the
`maximize-value-semantics` pass was handling the
`torch.overwrite.tensor` op. Before, the overwrite op would simply get
deleted and uses of the overwritten tensor would simply get replaced
with the overwriter tensor. This becomes a problem when one tensor has
a dynamic shape and the other has a static shape because ops that were
previously using the overwritten tensor will now get a tensor of a
different type.

To fix this, this commit adds a static cast to the overwriter tensor
so that it has the type of the overwritten tensor, and this casted
tensor is then used to replace the uses of the overwritten tensor.
2022-02-17 00:07:36 +00:00
..
CAPI [Torch][Linalg] Add basic support for RNG 2022-01-31 18:56:42 -05:00
Conversion [LINALG] Fix linalg generic result type argument in TorchToLinalg 2022-02-12 03:33:48 +00:00
Dialect Fix MaximizeValueSemantics handling of `torch.overwrite.tensor` op 2022-02-17 00:07:36 +00:00
RefBackend [Torch][Linalg] Add basic support for RNG 2022-01-31 18:56:42 -05:00
CMakeLists.txt Move external/torch-mlir to the root of the repo. 2021-09-27 17:11:08 -07:00
InitAll.cpp Dual license the torch-mlir project. 2021-10-01 10:46:08 -07:00