Skip to content

Commit

Permalink
Fix illegalOps list after rebasing main.
Browse files Browse the repository at this point in the history
  • Loading branch information
sahas3 committed Oct 31, 2024
1 parent 824d0cd commit 6760b46
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions lib/Conversion/TorchToTosa/TorchToTosa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6816,25 +6816,26 @@ void torch::populateTorchToTosaConversionIllegalOps(ConversionTarget &target) {
target.addIllegalOp<
AtenLogOp, AtenExpOp, AtenNegOp, AtenFloorOp, AtenRsqrtOp,
AtenBitwiseNotOp, AtenCeilOp, AtenReciprocalOp, AtenMaximumOp,
AtenMinimumOp, AtenLogicalOrOp, AtenAddTensorOp, AtenAddScalarOp,
AtenSubTensorOp, AtenSubScalarOp, AtenGtTensorOp, AtenGeScalarOp,
AtenGtScalarOp, AtenLtTensorOp, AtenLtScalarOp, AtenEqTensorOp,
AtenEqScalarOp, AtenNeTensorOp, AtenNeScalarOp, AtenBitwiseAndTensorOp,
AtenBitwiseOrTensorOp, AtenBitwiseXorTensorOp, AtenMulTensorOp,
AtenMulScalarOp, AtenDivTensorOp, AtenDivScalarOp, AtenMeanDimOp,
AtenSumDimIntListOp, AtenLinalgVectorNormOp, AtenAnyDimOp, AtenAllOp,
AtenAnyOp, AtenSumOp, AtenSqueezeOp, AtenSqueezeDimOp, AtenMatmulOp,
AtenMmOp, AtenBmmOp, AtenLinearOp, AtenAdaptiveAvgPool2dOp,
AtenMaxPool2dOp, AtenAvgPool2dOp, AtenOnesOp, AtenZerosOp,
AtenEmptyMemoryFormatOp, AtenFill_ScalarOp, AtenFillScalarOp,
AtenFillTensorOp, AtenMaskedFillScalarOp, AtenMaskedFillTensorOp,
AtenTanhOp, AtenSigmoidOp, AtenErfOp, AtenHardtanhBackwardOp, AtenReluOp,
AtenLeakyReluOp, AtenArgmaxOp, AtenPowTensorScalarOp,
AtenPowTensorTensorOp, AtenPowScalarOp, AtenRsubScalarOp,
AtenConvolutionOp, ValueTensorLiteralOp, AtenReshapeOp, AtenBatchNormOp,
AtenNativeLayerNormOp, AtenFlattenUsingIntsOp, AtenUnflattenIntOp,
AtenPermuteOp, AtenLog2Op, AtenThresholdOp, AtenUnsqueezeOp,
AtenContiguousOp, AtenDropoutOp, AtenViewOp, AtenGeluOp,
AtenMinimumOp, AtenLogicalOrOp, AtenLogicalXorOp, AtenLogicalAndOp,
AtenBitwiseLeftShiftTensorOp, AtenBitwiseRightShiftTensorOp,
AtenAddTensorOp, AtenAddScalarOp, AtenSubTensorOp, AtenSubScalarOp,
AtenGtTensorOp, AtenGeScalarOp, AtenGtScalarOp, AtenLtTensorOp,
AtenLtScalarOp, AtenEqTensorOp, AtenEqScalarOp, AtenNeTensorOp,
AtenNeScalarOp, AtenBitwiseAndTensorOp, AtenBitwiseOrTensorOp,
AtenBitwiseXorTensorOp, AtenMulTensorOp, AtenMulScalarOp, AtenDivTensorOp,
AtenDivScalarOp, AtenMeanDimOp, AtenSumDimIntListOp,
AtenLinalgVectorNormOp, AtenAnyDimOp, AtenAllOp, AtenAnyOp, AtenSumOp,
AtenSqueezeOp, AtenSqueezeDimOp, AtenMatmulOp, AtenMmOp, AtenBmmOp,
AtenLinearOp, AtenAdaptiveAvgPool2dOp, AtenMaxPool2dOp, AtenAvgPool2dOp,
AtenOnesOp, AtenZerosOp, AtenEmptyMemoryFormatOp, AtenFill_ScalarOp,
AtenFillScalarOp, AtenFillTensorOp, AtenMaskedFillScalarOp,
AtenMaskedFillTensorOp, AtenTanhOp, AtenSigmoidOp, AtenErfOp,
AtenHardtanhBackwardOp, AtenReluOp, AtenLeakyReluOp, AtenArgmaxOp,
AtenPowTensorScalarOp, AtenPowTensorTensorOp, AtenPowScalarOp,
AtenRsubScalarOp, AtenConvolutionOp, ValueTensorLiteralOp, AtenReshapeOp,
AtenBatchNormOp, AtenNativeLayerNormOp, AtenFlattenUsingIntsOp,
AtenUnflattenIntOp, AtenPermuteOp, AtenLog2Op, AtenThresholdOp,
AtenUnsqueezeOp, AtenContiguousOp, AtenDropoutOp, AtenViewOp, AtenGeluOp,
AtenGeluBackwardOp, AtenEmbeddingOp, AtenTransposeIntOp, AtenMaxDimOp,
AtenMinDimOp, AtenSliceTensorOp, AtenBroadcastToOp, AtenGatherOp,
AtenIndexPutHackedTwinOp, AtenIndexTensorHackedTwinOp, AtenAbsOp,
Expand All @@ -6843,7 +6844,9 @@ void torch::populateTorchToTosaConversionIllegalOps(ConversionTarget &target) {
AtenRemainderScalarOp, AtenRemainderTensorOp, AtenFmodScalarOp,
AtenFmodTensorOp, AtenCatOp, AtenSqrtOp, AtenIscloseOp,
Aten__InterpolateSizeListScaleListOp, AtenTrilOp, AtenDiagonalOp,
AtenIndexSelectOp, AtenFlipOp, AtenRoundOp, AtenCloneOp>();
AtenIndexSelectOp, AtenFlipOp, AtenRoundOp, AtenScatterSrcOp,
AtenSliceScatterOp, AtenDiagEmbedOp, AtenUniformOp,
AtenThresholdBackwardOp, AtenCloneOp>();
}

void torch::populateTorchToTosaConversionPatterns(TypeConverter &typeConverter,
Expand Down Expand Up @@ -6876,7 +6879,7 @@ void torch::populateTorchToTosaConversionPatterns(TypeConverter &typeConverter,
INSERT_BINARY_PATTERN(AtenMinimumOp, tosa::MinimumOp)
INSERT_BINARY_PATTERN(AtenLogicalOrOp, tosa::LogicalOrOp)
INSERT_BINARY_PATTERN(AtenLogicalXorOp, tosa::LogicalXorOp)
INSERT_BINARY_PATTERN(AtenLogicalAndOp, tosa::LogicalAndOp)
INSERT_BINARY_PATTERN(AtenLogicalAndOp, tosa::LogicalAndOp)
INSERT_BINARY_PATTERN(AtenBitwiseLeftShiftTensorOp, tosa::LogicalLeftShiftOp)
INSERT_BINARY_PATTERN(AtenBitwiseRightShiftTensorOp,
tosa::ArithmeticRightShiftOp)
Expand Down Expand Up @@ -7090,8 +7093,8 @@ void torch::populateTorchToTosaConversionPatterns(TypeConverter &typeConverter,
INSERT_ATENOP_PATTERN(AtenScatterSrcOp);
INSERT_ATENOP_PATTERN(AtenSliceScatterOp);
INSERT_ATENOP_PATTERN(AtenDiagEmbedOp);
INSERT_ATENOP_PATTERN(AtenUniformOp);
INSERT_ATENOP_PATTERN(AtenThresholdBackwardOp);
INSERT_ATENOP_PATTERN(AtenUniformOp);
INSERT_ATENOP_PATTERN(AtenThresholdBackwardOp);
#undef INSERT_ATENOP_PATTERN

#define INSERT_CLONE_ATENOP_PATTERN(AtenOp) \
Expand Down

0 comments on commit 6760b46

Please sign in to comment.