[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:
Rob Timpe
2025-11-13 02:23:06 +00:00
parent 115016f1a2
commit e1a2ede811

View File

@ -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