torch-mlir/python
Zhekun(Josh) Zhang 88d4c475d3
[Torch] Fix mixP case for non value semantic ops (#2540)
NonValueSemantic Ops like Add_, div_, etc. expect result DType to be the
same as the first input. However, current implementation would result in
wrong result type for case like:

```python
a = torch.randn(3, 3).half() # float16
b = torch.randn(3, 3) # float32
a += b # i.e. torch.ops.aten.add_(a, b)
```
torch expects `a` to be float16, but dtype refinement would infer
float32 type, since it's replaced by `aten.add`.
2023-11-02 12:40:08 +08:00
..
test Print name of the backend when tests fail to help debugging issues in CI (#2210) 2023-06-09 10:47:07 +02:00
torch_mlir [Torch Dialect] add canonicalize pattern for aten.floor with integer … (#2534) 2023-11-02 09:51:31 +08:00
torch_mlir_e2e_test [Torch] Fix mixP case for non value semantic ops (#2540) 2023-11-02 12:40:08 +08:00
CMakeLists.txt Fix version comparison against stable (#2209) 2023-06-07 10:19:38 +02:00
TorchMLIRModule.cpp Miscellaneous fixes for Windows builds (#1376) 2022-09-29 12:07:43 -05:00