torch-mlir/test/Dialect/Torch
Ramiro Leal-Cavazos 218b4875d5
Make conditions for type refinement of static cast less strict (#680)
This commit adds support for type refinement when
`torch.tensor_static_info_cast`s are involved, even when there are
users of the casted tensor that don't allow type refinements.

Originally the canonicalization pattern for
`torch.tensor_static_info_cast` would check if all the users of the
casted tensor allowed type refinements before making any changes. This
means that if at least one of the users did not allow type
refinements, the pattern would fail. This becomes an issue when doing
shape calculations because the calculations need the shape information
of each input tensor to be available before the calculation can be
simplified.
2022-03-18 09:10:12 -07:00
..
GlobalizeObjectGraph Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
adjust-calling-conventions.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
canonicalize.mlir Make conditions for type refinement of static cast less strict (#680) 2022-03-18 09:10:12 -07:00
decompose-complex-ops.mlir [MLIR][TORCH] Add E2E support for aten.index_put op 2022-03-16 22:02:02 +05:30
drop-shape-calculations.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
inline-global-slots.mlir Move external/torch-mlir to the root of the repo. 2021-09-27 17:11:08 -07:00
invalid.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
maximize-value-semantics.mlir Add maximize-value-semantics support for multiple non-value tensor inputs (#659) 2022-03-15 18:13:45 -07:00
ops.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
prepare-for-globalize-object-graph.mlir Move external/torch-mlir to the root of the repo. 2021-09-27 17:11:08 -07:00
promote-types.mlir Introduce new shape library design. 2022-03-15 12:41:58 -07:00
reduce-op-variants-error.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
reduce-op-variants.mlir [MLIR][TORCH] Add value tensor variant to aten::_index_put_impl_ 2022-03-16 22:02:02 +05:30
refine-public-return.mlir Introduce new shape library design. 2022-03-15 12:41:58 -07:00
refine-types-branch.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
refine-types-ops.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00
refine-types.mlir Introduce new shape library design. 2022-03-15 12:41:58 -07:00
reify-shape-calculations.mlir Improve "pseudo" op terminology. 2022-03-15 17:57:52 -07:00
simplify-shape-calculations.mlir Elide `!torch.` prefix in nested dialect types. 2022-03-15 17:24:08 -07:00