[stablehlo] add aten.expm1 op conversion support (#3199)

pull/3203/head
penguin_wwy 2024-04-22 10:20:49 +08:00 committed by GitHub
parent 8222637159
commit a60e84e5ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1881,6 +1881,7 @@ void mlir::torch::torch_to_stablehlo::populateBasicOpPatternsAndLegality(
INSERT_UNARY_PATTERN(AtenLogicalNotOp, stablehlo::NotOp); INSERT_UNARY_PATTERN(AtenLogicalNotOp, stablehlo::NotOp);
INSERT_UNARY_PATTERN(AtenBitwiseNotOp, stablehlo::NotOp); INSERT_UNARY_PATTERN(AtenBitwiseNotOp, stablehlo::NotOp);
INSERT_UNARY_PATTERN(AtenAbsOp, stablehlo::AbsOp); INSERT_UNARY_PATTERN(AtenAbsOp, stablehlo::AbsOp);
INSERT_UNARY_PATTERN(AtenExpm1Op, stablehlo::Expm1Op);
#undef INSERT_UNARY_PATTERN #undef INSERT_UNARY_PATTERN
#define INSERT_UNARY_FPONLY_PATTERN(AtenOp, StablehloOp) \ #define INSERT_UNARY_FPONLY_PATTERN(AtenOp, StablehloOp) \

View File

@ -648,8 +648,6 @@ FX_IMPORTER_STABLEHLO_XFAIL_SET = {
"ElementwiseDequantizePerChannelModule_basic", "ElementwiseDequantizePerChannelModule_basic",
"ElementwiseDequantizePerTensorModule_basic", "ElementwiseDequantizePerTensorModule_basic",
"ElementwiseErfIntModule_basic", "ElementwiseErfIntModule_basic",
"ElementwiseExpm1IntModule_basic",
"ElementwiseExpm1Module_basic",
"ElementwiseLog10IntModule_basic", "ElementwiseLog10IntModule_basic",
"ElementwiseLog10Module_basic", "ElementwiseLog10Module_basic",
"ElementwiseLog2IntModule_basic", "ElementwiseLog2IntModule_basic",
@ -1051,6 +1049,8 @@ STABLEHLO_PASS_SET = {
"ElementwiseDivScalarRoundingModeTruncIntStaticModule_basic", "ElementwiseDivScalarRoundingModeTruncIntStaticModule_basic",
"ElementwiseErfModule_basic", "ElementwiseErfModule_basic",
"ElementwiseExpModule_basic", "ElementwiseExpModule_basic",
"ElementwiseExpm1IntModule_basic",
"ElementwiseExpm1Module_basic",
"ElementwiseFloorIntModule_basic", "ElementwiseFloorIntModule_basic",
"ElementwiseFloorModule_basic", "ElementwiseFloorModule_basic",
"ElementwiseFmodTensor_Float_basic", "ElementwiseFmodTensor_Float_basic",