mirror of https://github.com/llvm/torch-mlir
[stablehlo] add aten.expm1 op conversion support (#3199)
parent
8222637159
commit
a60e84e5ee
|
@ -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) \
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue