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).
|
|
|
|
|
|
|
|
# Lists of tests that fail to even reach the backends.
|
2021-09-28 02:36:44 +08:00
|
|
|
# These represent further work needed in torch-mlir to lower them properly
|
2021-07-01 05:13:21 +08:00
|
|
|
# to the backend contract.
|
2021-10-05 02:24:12 +08:00
|
|
|
COMMON_TORCH_MLIR_LOWERING_XFAILS = {
|
2021-10-08 10:07:03 +08:00
|
|
|
"QuantizedMLP_basic",
|
2021-10-27 11:44:01 +08:00
|
|
|
"IouOfModule_basic",
|
2021-09-03 03:47:59 +08:00
|
|
|
}
|
2021-12-03 12:09:21 +08:00
|
|
|
# Fails due to https://github.com/llvm/torch-mlir/issues/448
|
|
|
|
SIZE_ZERO_TENSOR_XFAILS = {
|
|
|
|
"SliceEndSleStartModule_basic",
|
|
|
|
"SliceStartEqEndModule_basic",
|
|
|
|
"SliceOutOfUpperBoundIndexModule_basic",
|
|
|
|
}
|
|
|
|
REFBACKEND_XFAIL_SET = set.union(COMMON_TORCH_MLIR_LOWERING_XFAILS, SIZE_ZERO_TENSOR_XFAILS)
|
2021-08-11 07:10:31 +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",
|
2021-11-11 11:03:36 +08:00
|
|
|
"ElementwiseReluModule_basic",
|
|
|
|
"ElementwiseFloorModule_basic",
|
|
|
|
"ElementwiseLogModule_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",
|
2021-10-26 02:43:21 +08:00
|
|
|
}
|