Yuanqiang Liu
0548e2ef3b
[Stablehlo] fix promoteType() when input doesn't have DefiningOp ( #2262 )
2023-06-26 00:04:17 +08:00
Yuanqiang Liu
bba0f5891b
[Stablehlo] add conversion for AtenFlipOp ( #2163 )
2023-06-15 10:27:34 +08:00
Zhekun Zhang
f0b7b63be0
[Stablehlo] Add aten.uniform lowering ( #2101 )
...
* add uniform stablehlo lowering
* add unit test
* new line
* rm redundant file
* Empty commit, trigger test
* fix include
* address comments
---------
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-05-25 10:32:55 +08:00
Zhekun Zhang
1333674905
[StableHlo] Support AtenEmptyMemoryFormatOp ( #2092 )
...
* add empty conversion
* clean up
* add tests
---------
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-05-18 19:07:35 -07:00
Yuanqiang Liu
6f7d9e83df
[Stablehlo] add e2e test for aten.batch_norm ( #2129 )
2023-05-17 09:04:40 -07:00
Zhekun Zhang
1eb18dd8b5
Add AtenFillScalarOp Stablehlo support ( #2108 )
...
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-05-11 16:41:46 -07:00
Chi_Liu
51e0a2c933
[Stablehlo] Add stablehlo support for aten.abs ( #2068 )
...
Co-authored-by: AmosLewis <Amos_Lewsi@foxmail.com>
2023-05-08 22:13:00 -07:00
Zhekun Zhang
fc62b8e9ab
[StableHlo] Fix AtenWhereSelfOp convert rule ( #2093 )
...
* fix whereself convert rule
* use int to test promotion
* add dynamo failing test
---------
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-05-05 15:21:55 -07:00
Zhekun Zhang
1eceb84899
add stablehlo support for pow.tensor_tensor ( #2086 )
...
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-05-04 09:55:03 -07:00
Abhishek Varma
318fe13468
[MLIR][TORCH] Patch up Ops and their lowerings to deal with +ve `dim`
...
-- In Python we have the concept of negative dimension indexing.
-- We would want to normalize such dimensions to be +ve and within the
expected range instead.
-- This commit takes care of a few remaining set of Ops and their
lowerings by applying `toPositiveDim` and `isValidDim` to the
extracted integer `dim` value.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com>
2023-04-14 13:12:56 +05:30
Ziheng Jiang
72bb902640
[STABLEHLO] Move utils.h to include/ ( #1974 )
2023-03-27 21:16:21 -07:00
Ziheng Jiang
38ed559398
[StableHLO] Add support for AtenPowTensorScalar. ( #1883 )
...
* [MHLO] Add support for AtenPowTensorScalar.
* Update.
---------
Co-authored-by: Ziheng Jiang <ziheng.jiang@bytedance.com>
2023-02-16 20:26:46 -08:00
Yuanqiang Liu
089018b658
[MHLO] move AtenTanhOp to ConvertAtenUnaryFPOnlyPatten and add sin/cos/ceil/floor pattern ( #1847 )
2023-02-06 11:14:26 -08:00
Ashay Rane
711646d095
mhlo: migrate conversion to stablehlo ( #1840 )
...
This patch replaces all MHLO operations with their StableHLO
counterparts and adds a validation pass to ensure that no MHLO operations
remain before translating all Stablehlo operations to the MHLO dialect
for further lowering to the Linalg dialect.
This patch also updates all lit tests so that they refer to the
`convert-torch-to-stablehlo` pass and so that they check for StableHLO
operations.
2023-02-02 07:29:47 -06:00