Skip to content

Commit 3f36143

Browse files
committed
Update on "Move std and var tests to OpInfos"
[ghstack-poisoned]
1 parent 724b22a commit 3f36143

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

test/test_torch.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6723,12 +6723,6 @@ def inner(self, device, dtype):
67236723
('remainder', 'negative_tensor', _small_3d,
67246724
lambda t, d: [0 - _small_3d(t, d, has_zeros=False)],
67256725
1e-1, 1e-2, 1e-5, _signed_types),
6726-
('std', '', _small_3d, lambda t, d: [], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
6727-
('std', 'dim', _small_3d, lambda t, d: [1], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
6728-
('std', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
6729-
('var', '', _small_3d, lambda t, d: [], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
6730-
('var', 'dim', _small_3d, lambda t, d: [1], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
6731-
('var', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-2, 1e-5, torch.testing.get_all_fp_dtypes(), _cpu_types, False),
67326726
('ndimension', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
67336727
('nelement', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
67346728
('numel', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),

torch/testing/_internal/common_methods_invocations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,7 @@ def sample_inputs_fliplr_flipud(op_info, device, dtype, requires_grad):
14381438
supports_tensor_out=False,
14391439
test_complex_grad=False,
14401440
test_inplace_grad=False,
1441+
# std has only partial support for complex and half (#51127)
14411442
skips=(SkipInfo('TestOpInfo', 'test_unsupported_dtypes',
14421443
dtypes=[torch.half, torch.complex64, torch.complex128]),),
14431444
assert_autodiffed=True,
@@ -1732,6 +1733,7 @@ def sample_inputs_fliplr_flipud(op_info, device, dtype, requires_grad):
17321733
supports_tensor_out=False,
17331734
test_complex_grad=False,
17341735
test_inplace_grad=False,
1736+
# var has only partial support for complex and half (#51127)
17351737
skips=(SkipInfo('TestOpInfo', 'test_unsupported_dtypes',
17361738
dtypes=[torch.half, torch.complex64, torch.complex128]),),
17371739
assert_autodiffed=True,

0 commit comments

Comments
 (0)