2021-09-30 00:03:40 +08:00
|
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
# Also available under a BSD-style license. See LICENSE.
|
2021-07-01 05:13:21 +08:00
|
|
|
|
|
|
|
# This file describes the sets of tests expected to fail for each config.
|
|
|
|
# This information is deliberately kept in a side table, rather than
|
|
|
|
# in-situ on the test, as a deliberate layering decision: tests should
|
|
|
|
# have unique keys to identify them and enable side tables of various kinds
|
|
|
|
# (this includes down into lower parts of the stack, where a side table
|
|
|
|
# might be used to keep more elaborate sets of testing configurations).
|
|
|
|
|
2022-04-20 03:35:56 +08:00
|
|
|
from torch_mlir_e2e_test.test_suite import COMMON_TORCH_MLIR_LOWERING_XFAILS
|
|
|
|
|
2021-12-16 05:54:41 +08:00
|
|
|
REFBACKEND_XFAIL_SET = COMMON_TORCH_MLIR_LOWERING_XFAILS
|
2021-08-11 07:10:31 +08:00
|
|
|
|
2022-05-26 03:59:59 +08:00
|
|
|
EAGER_MODE_XFAIL_SET = {
|
|
|
|
# RefBackend fails
|
|
|
|
"TableBatchEmbeddingModule_basic",
|
|
|
|
"QuantizedMLP_basic"
|
|
|
|
}
|
2022-03-03 07:02:18 +08:00
|
|
|
|
2021-10-08 10:07:03 +08:00
|
|
|
# Write the TOSA set as a "passing" set as it is very early in development
|
|
|
|
# and very few tests work yet.
|
2021-10-26 02:43:21 +08:00
|
|
|
TOSA_PASS_SET = {
|
2021-10-26 04:43:54 +08:00
|
|
|
"ElementwiseUnaryModule_basic",
|
2021-12-04 15:31:38 +08:00
|
|
|
"ElementwiseBinaryModule_basic",
|
2021-10-29 01:09:12 +08:00
|
|
|
"ElementwiseSigmoidModule_basic",
|
2022-03-24 04:35:43 +08:00
|
|
|
"ElementwiseExpModule_basic",
|
2021-11-11 11:03:36 +08:00
|
|
|
"ElementwiseReluModule_basic",
|
|
|
|
"ElementwiseFloorModule_basic",
|
|
|
|
"ElementwiseLogModule_basic",
|
2021-12-29 10:11:07 +08:00
|
|
|
"ElementwiseBinaryStaticShapeModule_basic",
|
2022-02-09 04:57:23 +08:00
|
|
|
"ElementwiseMinimumModule_basic",
|
|
|
|
"ElementwiseMinimumIntModule_basic",
|
|
|
|
"ElementwiseMaximumModule_basic",
|
|
|
|
"ElementwiseMaximumIntModule_basic",
|
2021-11-12 08:15:58 +08:00
|
|
|
"TanhBackward_basic",
|
2021-11-24 14:25:59 +08:00
|
|
|
"ElementwiseAddModule_basic",
|
2021-11-08 23:56:40 +08:00
|
|
|
"ReturnThreeTensorFloat32_basic",
|
2021-11-25 06:01:48 +08:00
|
|
|
"AddCMulModule_basic",
|
|
|
|
"AddCDivModule_basic",
|
2021-12-01 05:48:10 +08:00
|
|
|
"SqueezeModule_broadcast",
|
2021-12-08 22:05:02 +08:00
|
|
|
"BoolTensorReturnFalseModule_basic",
|
|
|
|
"BoolTensorReturnTrueModule_basic",
|
|
|
|
"BoolTensorReturnMixedModule_basic",
|
2022-04-14 01:28:27 +08:00
|
|
|
"BoolTensorHandleSignless_basic",
|
2021-12-15 02:03:58 +08:00
|
|
|
"ElementwiseRsqrtModule_basic",
|
2021-12-16 13:40:29 +08:00
|
|
|
"SqueezeModule_static",
|
|
|
|
"SqueezeModule_noUnitDim",
|
|
|
|
"SqueezeModule_allUnitDim",
|
2021-12-17 12:08:07 +08:00
|
|
|
"TModuleRank1_basic",
|
|
|
|
"TModuleRank0_basic",
|
2021-12-23 20:04:29 +08:00
|
|
|
"ElementwiseToDtypeIdentityModule_basic",
|
|
|
|
"View1DFoldModule_basic",
|
2022-02-10 16:11:05 +08:00
|
|
|
"UnsafeView1DFoldModule_basic",
|
2022-01-07 00:31:29 +08:00
|
|
|
"SqueezeDimModule_static",
|
|
|
|
"SqueezeDimModule_identity",
|
|
|
|
"SqueezeDimModule_unitDim",
|
2022-01-10 21:24:08 +08:00
|
|
|
"ReturnTwoTensorF32I64_basic",
|
2022-01-15 03:05:11 +08:00
|
|
|
"ElementwisePowModule_basic",
|
2022-01-20 04:10:04 +08:00
|
|
|
"BmmModule_basic",
|
2022-02-19 01:56:48 +08:00
|
|
|
"MmDagModule_basic",
|
2022-01-20 04:10:04 +08:00
|
|
|
"Matmul_dot",
|
|
|
|
"Matmul_3d",
|
2022-01-21 02:58:30 +08:00
|
|
|
"RsubModule_basic",
|
|
|
|
"RsubModule_noalpha_basic",
|
|
|
|
"ElementwiseGtFloatScalarModule_basic",
|
|
|
|
"ElementwiseGtIntScalarModule_basic",
|
|
|
|
"ElementwiseGtMixed2ScalarModule_basic",
|
|
|
|
"ElementwiseGtFloatTensorModule_basic",
|
|
|
|
"ElementwiseGtIntTensorModule_basic",
|
|
|
|
"ElementwiseLtFloatScalarModule_basic",
|
|
|
|
"ElementwiseLtIntScalarModule_basic",
|
|
|
|
"ElementwiseLtDiffWidthScalarModule_basic",
|
|
|
|
"ElementwiseLtFloatTensorModule_basic",
|
|
|
|
"ElementwiseLtIntTensorModule_basic",
|
|
|
|
"ElementwiseEqFloatScalarModule_basic",
|
|
|
|
"ElementwiseEqIntScalarModule_basic",
|
|
|
|
"ElementwiseEqDiffWidthScalarModule_basic",
|
|
|
|
"ElementwiseEqFloatTensorModule_basic",
|
|
|
|
"ElementwiseEqIntTensorModule_basic",
|
|
|
|
"ElementwiseMulScalarModule_int",
|
|
|
|
"ElementwiseMulScalarModule_float",
|
|
|
|
"ElementwiseMulTensorIntModule_basic",
|
|
|
|
"ElementwiseDivScalarModule_basic",
|
|
|
|
"ElementwiseSubScalarFloatModule_basic",
|
|
|
|
"ElementwiseAddScalarFloatModule_basic",
|
|
|
|
"ElementwiseMulScalarModule_float",
|
|
|
|
"ElementwiseCeilModule_basic",
|
|
|
|
"ElementwiseReciprocalModule_basic",
|
|
|
|
"TypePromotionAlphaWiderModule_basic",
|
2022-01-27 11:16:13 +08:00
|
|
|
"Conv2dWithPaddingDilationStrideStaticModule_basic",
|
2022-02-25 03:41:55 +08:00
|
|
|
"BatchNorm1DModule_basic",
|
|
|
|
"BatchNorm2DModule_basic",
|
|
|
|
"BatchNorm3DModule_basic",
|
2022-01-29 13:38:56 +08:00
|
|
|
"FlattenStaticModule_basic",
|
|
|
|
"FlattenRank0Module_basic",
|
|
|
|
"ElementwiseFlattenBroadcastModule_basic",
|
2022-01-30 01:10:50 +08:00
|
|
|
"SquareModule_basic",
|
2022-02-01 05:34:09 +08:00
|
|
|
"MaxPool2dStaticModule_basic",
|
2022-02-25 03:41:55 +08:00
|
|
|
"ResNet18StaticModule_basic",
|
2022-02-04 06:08:19 +08:00
|
|
|
"NativeLayerNormModule4D_basic",
|
|
|
|
"LayerNormNormalizeOverAllDimsModule_basic",
|
|
|
|
"PermuteModule_basic",
|
|
|
|
"PermuteNegativeIndexModule_basic",
|
2022-02-12 04:30:02 +08:00
|
|
|
"ElementwiseLog2Module_basic",
|
|
|
|
"Threshold1dIntI32Module_basic",
|
|
|
|
"Threshold1dFloatModule_basic",
|
|
|
|
"Threshold2dFloatModule_basic",
|
|
|
|
"Threshold3dFloatModule_basic",
|
|
|
|
"ElementwiseSubScalarIntModule_basic",
|
|
|
|
"ElementwiseAddScalarIntModule_basic",
|
|
|
|
"ElementwiseMulScalarModule_basic",
|
2022-02-17 01:53:51 +08:00
|
|
|
"ZerosModuleDefaultDtype_basic",
|
|
|
|
"ZerosModuleInt2D_basic",
|
|
|
|
"ZerosModuleInt3D_basic",
|
|
|
|
"ZerosModuleFloat2D_basic",
|
|
|
|
"ZerosModuleFloat3D_basic",
|
|
|
|
"ZerosModuleFalsePinMemory_basic",
|
|
|
|
"OnesModuleDefaultDtype_basic",
|
|
|
|
"OnesModuleInt_basic",
|
|
|
|
"OnesModuleFloat_basic",
|
|
|
|
"OnesModuleFalsePinMemory_basic",
|
2022-02-28 14:14:40 +08:00
|
|
|
"NewZerosModuleDefaultDtype_basic",
|
|
|
|
"NewZerosModuleInt2D_basic",
|
|
|
|
"NewZerosModuleInt3D_basic",
|
|
|
|
"NewZerosModuleFloat2D_basic",
|
|
|
|
"NewZerosModuleFloat3D_basic",
|
|
|
|
"NewZerosModuleFalsePinMemory_basic",
|
|
|
|
"NewOnesModuleDefaultDtype_basic",
|
|
|
|
"NewOnesModuleInt2D_basic",
|
|
|
|
"NewOnesModuleInt3D_basic",
|
|
|
|
"NewOnesModuleFloat2D_basic",
|
|
|
|
"NewOnesModuleFloat3D_basic",
|
|
|
|
"NewOnesModuleFalsePinMemory_basic",
|
2022-03-02 01:30:58 +08:00
|
|
|
"SiluModule_basic",
|
2022-02-17 00:34:03 +08:00
|
|
|
"DropoutEvalIntModule_basic",
|
|
|
|
"DropoutEvalFloatModule_basic",
|
2022-03-26 05:15:07 +08:00
|
|
|
"ContiguousModule_basic",
|
|
|
|
"DropoutModule_basic",
|
|
|
|
"ViewExpandModule_basic",
|
|
|
|
"ViewCollapseInferredDimModule_basic",
|
|
|
|
"ViewExpandInferredDimModule_basic",
|
|
|
|
"ViewNoChangeStaticModule_basic",
|
|
|
|
"UnsafeViewExpandModule_basic",
|
|
|
|
"ReshapeCollapseModule_basic",
|
2022-03-31 08:00:55 +08:00
|
|
|
"ElementwiseGeluModule_basic",
|
|
|
|
"GeluBackwardModule_basic",
|
2022-04-04 00:19:01 +08:00
|
|
|
"ElementwiseNeIntScalarModule_basic",
|
|
|
|
"ElementwiseNeFloatTensorModule_basic",
|
2022-04-08 12:47:57 +08:00
|
|
|
"ConvolutionModule2DStatic_basic",
|
2022-04-16 03:37:57 +08:00
|
|
|
"ElementwiseNegModule_basic",
|
2022-04-19 21:47:47 +08:00
|
|
|
"TestMultipleTensorReturn_basic",
|
2022-05-19 20:35:59 +08:00
|
|
|
"AdaptiveAvgPool2dUnitOutputSizeStaticModule_basic",
|
2021-10-26 02:43:21 +08:00
|
|
|
}
|