torch-mlir/test
Ramiro Leal-Cavazos 273664ded6
[custom op] Replace `tanh` dtype function with `expm1` (#1769)
This commit replaces the `tanh` dtype function, which was being used
to test the implementation of dtype functions in
a710237437, with a dtype function for
`expm1`. The dtype function for `expm1` is identical to the `tanh`
one, so the same level of testing is maintained.

Currently, there are ops getting dtype information from the
`RefineTypes` pass and ops getting dtype information from the
`TorchDtypeRefinementPipeline`. Since each pass can only propagete
dtype information for the ops it knows how to handle, some models with
many ops handled in both passes require the two dtype propagation
passes to execute many times, reaching the iteration limit set in the
`LowerToBackendContractPass`. To temporarily avoid this issue while
the migration to `TorchDtypeRefinementPipeline` is finished, this
commit switches `tanh` to `expm1`, since the latter is used a lot less
in large models.
2023-01-03 14:18:26 -08:00
..
Conversion Revert e2e support for aten logical or/and/xor/not ops (#1757) 2022-12-29 21:01:06 -06:00
Dialect [custom op] Replace `tanh` dtype function with `expm1` (#1769) 2023-01-03 14:18:26 -08:00
RefBackend [MLIR][TORCH] Add TorchConversionToMLProgram and MLProgramBufferize pass 2022-12-02 13:20:46 +05:30
python Fix Base Lazy Backend Type Conversion (#1412) 2022-10-04 15:53:28 -07:00
CMakeLists.txt [MHLO] Init MHLO integration. (#1083) 2022-07-20 16:18:16 -07:00
lit.cfg.py Enable torch-mlir LIT tests in Bazel (#1585) 2022-11-15 14:02:19 -08:00
lit.site.cfg.py.in Miscellaneous fixes for Windows builds (#1376) 2022-09-29 12:07:43 -05:00