torch-mlir/lib
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
..
CAPI Add typeids to CAPI. (#2253) 2023-06-20 22:06:43 -05:00
Conversion add uncovered cases in view lowering (#2524) 2023-11-01 21:56:44 -05:00
Dialect [Torch] Fix mixP case for non value semantic ops (#2540) 2023-11-02 12:40:08 +08:00
RefBackend Update llvm-project to b44b3494f60296db6aca38a14cab061d9b747a0a (#2511) 2023-10-16 19:29:48 -07:00
CMakeLists.txt Remove mlir-hlo (replace with stablehlo). (#2460) 2023-09-12 19:10:02 -07:00
InitAll.cpp Remove mlir-hlo (replace with stablehlo). (#2460) 2023-09-12 19:10:02 -07:00