mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-20 02:24:54 +08:00
[3.14] Skip failing spherical_bessel_j0 tests
Starting with scipy 1.15, bool inputs error out. ghstack-source-id: daf44eaea549d08fe0edeec0b3679d45dc7d93ca Pull-Request: https://github.com/pytorch/pytorch/pull/167691
This commit is contained in:
@ -648,6 +648,16 @@ op_db: list[OpInfo] = [
|
||||
dtypes=all_types_and(torch.bool),
|
||||
ref=lambda x: scipy.special.spherical_jn(0, x) if TEST_SCIPY else None,
|
||||
supports_autograd=False,
|
||||
skips=(
|
||||
DecorateInfo(
|
||||
unittest.skip(
|
||||
"Scipy doesn't support bool inputs to spherical_bessel_j0"
|
||||
),
|
||||
"TestUnaryUfuncs",
|
||||
"test_reference_numerics_normal",
|
||||
dtypes=(torch.bool,),
|
||||
),
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@ -768,6 +778,16 @@ python_ref_db: list[OpInfo] = [
|
||||
}
|
||||
),
|
||||
),
|
||||
skips=(
|
||||
DecorateInfo(
|
||||
unittest.skip(
|
||||
"Scipy doesn't support bool inputs to spherical_bessel_j0"
|
||||
),
|
||||
"TestUnaryUfuncs",
|
||||
"test_reference_numerics_normal",
|
||||
dtypes=(torch.bool,),
|
||||
),
|
||||
),
|
||||
),
|
||||
#
|
||||
# Elementwise Binary Special OpInfos
|
||||
|
||||
Reference in New Issue
Block a user