mirror of https://github.com/llvm/torch-mlir
[Stablehlo] lowering aten.round to stablehlo.round_nearest_even (#3011)
parent
e78c99e74e
commit
ad6159c7cb
|
@ -1779,6 +1779,7 @@ void mlir::torch::torch_to_stablehlo::populateBasicOpPatternsAndLegality(
|
|||
INSERT_UNARY_FPONLY_PATTERN(AtenCosOp, stablehlo::CosineOp);
|
||||
INSERT_UNARY_FPONLY_PATTERN(AtenCeilOp, stablehlo::CeilOp);
|
||||
INSERT_UNARY_FPONLY_PATTERN(AtenFloorOp, stablehlo::FloorOp);
|
||||
INSERT_UNARY_FPONLY_PATTERN(AtenRoundOp, stablehlo::RoundNearestEvenOp);
|
||||
#undef INSERT_UNARY_FPONLY_PATTERN
|
||||
|
||||
#define INSERT_CONSTANT_FILL_PATTERN(AtenOp, fillVal) \
|
||||
|
|
|
@ -405,6 +405,8 @@ STABLEHLO_PASS_SET = {
|
|||
"AtenItemIntOpModule_basic",
|
||||
"AtenMmFloatTypes_basic",
|
||||
"AtenMmIntTypes_basic",
|
||||
"AtenRoundFloatHalfToEvenModule_basic",
|
||||
"AtenRoundFloatModule_basic",
|
||||
"AtenRoundIntModule_basic",
|
||||
"AtenSubFloatModule_basic",
|
||||
"AtenToDeviceModule_basic",
|
||||
|
|
Loading…
Reference in New Issue