From 26e43fe9f3e9d5790dead654349842992e4ded8a Mon Sep 17 00:00:00 2001 From: Jane Xu Date: Wed, 15 Sep 2021 08:28:00 -0700 Subject: [PATCH] Forward fix SkipInfo missing mypy (#65063) Summary: Fixes #{issue number} Pull Request resolved: https://github.com/pytorch/pytorch/pull/65063 Reviewed By: malfet Differential Revision: D30961556 Pulled By: janeyx99 fbshipit-source-id: 9618e12ba873fb48fe5c846a48d4560ad521eb3e --- torch/testing/_internal/common_methods_invocations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torch/testing/_internal/common_methods_invocations.py b/torch/testing/_internal/common_methods_invocations.py index f7294c2..7289750 100644 --- a/torch/testing/_internal/common_methods_invocations.py +++ b/torch/testing/_internal/common_methods_invocations.py @@ -9345,14 +9345,14 @@ op_db: List[OpInfo] = [ skips=( # Probably because we have used lambda for the op here # AssertionError: JIT Test does not execute any logic - SkipInfo('TestJit', 'test_variant_consistency_jit'), + DecorateInfo(unittest.skip("Skipped!"), 'TestJit', 'test_variant_consistency_jit'), # inplace variant dispatches to dropout kernel, while on CUDA # the op dispatches to _fused_dropout (with a few more conditions) # hence, different values and this skip here - SkipInfo('TestMathBits', 'test_neg_view', device_type='cuda'), + DecorateInfo(unittest.skip("Skipped!"), 'TestMathBits', 'test_neg_view', device_type='cuda'), # On CUDA, the op is dispatched (and a few more conditions) to # _fused_dropout, which doesn't support forward AD - SkipInfo('TestGradients', 'test_forward_mode_AD', device_type='cuda'),), + DecorateInfo(unittest.skip("Skipped!"), 'TestGradients', 'test_forward_mode_AD', device_type='cuda'),), gradcheck_wrapper=wrapper_set_seed, supports_forward_ad=True, supports_out=False, -- 2.7.4