torch-mlir/lib/Dialect/Torch
Ramiro Leal-Cavazos a46b5c6af2 Fix types + off-by-1 error, clamp `end` in slice+copy_ recomposition
The `copy_` op being replaced by `RecomposeSliceCopy_` operates on a
subset of the tensor being mutated, while the `index_put` op being
used to replace the `copy_` op operates on the entire tensor being
mutated. This means that the result type of the `index_put` should be
the type of the input to `index_put` and we need to make sure that
`copy_` does not have users before replacing to avoid type conflicts.

This commit also fixes the result type used for the
`AtenArangeStartStepOp`, and an off-by-1 error when creating the
indices vector.

Lastly, this commit also clamps the `end` value from the slice to the
size of the dimension.
2023-06-01 11:14:53 -07:00
..
IR [Torch Dialect] Enforce signless attribute for ConstantIntOp (#2078) 2023-05-22 19:21:34 -05:00
Transforms Fix types + off-by-1 error, clamp `end` in slice+copy_ recomposition 2023-06-01 11:14:53 -07:00
Utils Add complex types support with basic complex ops. 2023-05-11 21:29:07 +05:30
CMakeLists.txt E2e support for aten.softmax.int and aten.embedding 2021-10-18 17:57:45 -04:00