@@ -10203,11 +10203,7 @@ def ref_pairwise_distance(input1, input2):
10203
10203
dtypes=all_types_and_complex_and(torch.bool, torch.half, torch.bfloat16),
10204
10204
supports_forward_ad=True,
10205
10205
supports_fwgrad_bwgrad=True,
10206
- sample_inputs_func=sample_inputs_masked_select,
10207
- skips=(
10208
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10209
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10210
- )),
10206
+ sample_inputs_func=sample_inputs_masked_select),
10211
10207
OpInfo('matrix_exp',
10212
10208
dtypes=floating_and_complex_types_and(torch.bfloat16),
10213
10209
dtypesIfCUDA=floating_and_complex_types_and(torch.float16, *[torch.bfloat16] if CUDA11OrLater else []),
@@ -10257,44 +10253,23 @@ def ref_pairwise_distance(input1, input2):
10257
10253
supports_out=False,
10258
10254
supports_forward_ad=True,
10259
10255
supports_fwgrad_bwgrad=True,
10260
- sample_inputs_func=sample_inputs_max_min_reduction_no_dim,
10261
- skips=(
10262
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10263
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10264
- # (ROCm) unexpected success
10265
- DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_fwgrad_bwgrad',
10266
- device_type='cuda', dtypes=[torch.float64], active_if=TEST_WITH_ROCM),
10267
- )),
10256
+ sample_inputs_func=sample_inputs_max_min_reduction_no_dim),
10268
10257
OpInfo('median',
10269
10258
dtypes=all_types_and(torch.bfloat16),
10270
10259
dtypesIfCUDA=all_types_and(torch.float16),
10271
10260
# TODO: some signatures of median do support out
10272
10261
supports_out=False,
10273
10262
supports_forward_ad=True,
10274
10263
supports_fwgrad_bwgrad=True,
10275
- sample_inputs_func=partial(sample_inputs_reduction, supports_multiple_dims=False),
10276
- skips=(
10277
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10278
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10279
- # (ROCm) unexpected success
10280
- DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_fwgrad_bwgrad',
10281
- device_type='cuda', dtypes=[torch.float64], active_if=TEST_WITH_ROCM),
10282
- )),
10264
+ sample_inputs_func=partial(sample_inputs_reduction, supports_multiple_dims=False)),
10283
10265
OpInfo('nanmedian',
10284
10266
dtypes=all_types_and(torch.bfloat16),
10285
10267
dtypesIfCUDA=all_types_and(torch.float16),
10286
10268
# TODO: some signatures of nanmedian do support out
10287
10269
supports_out=False,
10288
10270
supports_forward_ad=True,
10289
10271
supports_fwgrad_bwgrad=True,
10290
- sample_inputs_func=partial(sample_inputs_reduction, supports_multiple_dims=False),
10291
- skips=(
10292
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10293
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10294
- # (ROCm) unexpected success
10295
- DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_fwgrad_bwgrad',
10296
- device_type='cuda', dtypes=[torch.float64], active_if=TEST_WITH_ROCM),
10297
- )),
10272
+ sample_inputs_func=partial(sample_inputs_reduction, supports_multiple_dims=False)),
10298
10273
OpInfo('var_mean',
10299
10274
dtypes=floating_and_complex_types_and(torch.half, torch.bfloat16),
10300
10275
dtypesIfCUDA=floating_and_complex_types_and(torch.half, torch.bfloat16),
@@ -10394,14 +10369,7 @@ def ref_pairwise_distance(input1, input2):
10394
10369
supports_out=False,
10395
10370
supports_forward_ad=True,
10396
10371
supports_fwgrad_bwgrad=True,
10397
- sample_inputs_func=sample_inputs_max_min_reduction_no_dim,
10398
- skips=(
10399
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10400
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10401
- # (ROCm) unexpected success
10402
- DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_fn_fwgrad_bwgrad',
10403
- device_type='cuda', dtypes=[torch.float64], active_if=TEST_WITH_ROCM),
10404
- )),
10372
+ sample_inputs_func=sample_inputs_max_min_reduction_no_dim),
10405
10373
OpInfo('quantile',
10406
10374
dtypes=floating_types(),
10407
10375
sample_inputs_func=sample_inputs_reduction_quantile,
@@ -10709,8 +10677,6 @@ def ref_pairwise_distance(input1, input2):
10709
10677
check_inplace_batched_forward_grad=False,
10710
10678
sample_inputs_func=sample_inputs_as_strided,
10711
10679
skips=(
10712
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
10713
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
10714
10680
# AssertionError: False is not true : Tensors failed to compare as equal!
10715
10681
DecorateInfo(unittest.expectedFailure, 'TestCommon', 'test_noncontiguous_samples'),
10716
10682
# AssertionError: False is not true : Scalars failed to compare as equal!
@@ -13080,11 +13046,7 @@ def ref_pairwise_distance(input1, input2):
13080
13046
supports_forward_ad=True,
13081
13047
supports_fwgrad_bwgrad=True,
13082
13048
assert_jit_shape_analysis=True,
13083
- gradcheck_nondet_tol=GRADCHECK_NONDET_TOL,
13084
- skips=(
13085
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
13086
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
13087
- )),
13049
+ gradcheck_nondet_tol=GRADCHECK_NONDET_TOL),
13088
13050
OpInfo('index_add',
13089
13051
dtypes=all_types_and_complex_and(torch.bool, torch.float16, torch.bfloat16),
13090
13052
# An `out=` variant exists but is not exposed to the Python API
@@ -13990,11 +13952,7 @@ def ref_pairwise_distance(input1, input2):
13990
13952
supports_out=False,
13991
13953
supports_forward_ad=True,
13992
13954
supports_fwgrad_bwgrad=True,
13993
- sample_inputs_func=sample_inputs_trace,
13994
- skips=(
13995
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
13996
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
13997
- )),
13955
+ sample_inputs_func=sample_inputs_trace),
13998
13956
OpInfo('transpose',
13999
13957
aliases=('swapdims', 'swapaxes'),
14000
13958
assert_jit_shape_analysis=True,
@@ -15244,8 +15202,6 @@ def ref_pairwise_distance(input1, input2):
15244
15202
supports_forward_ad=True,
15245
15203
supports_fwgrad_bwgrad=True,
15246
15204
skips=(
15247
- # 69855: RuntimeError: ZeroTensors are immutable. Please use the materialized zero tensor (...)
15248
- DecorateInfo(unittest.expectedFailure, 'TestGradients', 'test_fn_fwgrad_bwgrad'),
15249
15205
DecorateInfo(
15250
15206
unittest.skip("Skipped!"),
15251
15207
"TestJit",
0 commit comments