@@ -19787,20 +19787,20 @@ def inner(self, device, dtype):
1978719787 ('mul', 'tensor', _small_3d, lambda t, d: [_small_3d(t, d)], 1e-2),
1978819788 ('mul', 'scalar', _small_0d, lambda t, d: [_small_0d(torch.int32, d)], 1e-2),
1978919789 ('div', '', _small_3d, lambda t, d: [_number(3.14, 3, t)], 1e-1,
19790- 1e-1, 1e-5, _float_types2 ),
19790+ 1e-1, 1e-5, torch.testing.get_all_fp_dtypes() ),
1979119791 ('div', 'tensor', _small_3d,
1979219792 lambda t, d: [_small_3d(t, d, has_zeros=False)], 1e-1,
19793- 1e-1, 1e-5, _float_types2 ),
19793+ 1e-1, 1e-5, torch.testing.get_all_fp_dtypes() ),
1979419794 ('true_divide', '', _small_3d, lambda t, d: [_number(3.14, 3, t)], 1e-1,
1979519795 1e-5, 1e-5, _types, _cpu_types, False),
1979619796 ('true_divide', 'with_inplace', _small_3d, lambda t, d: [_number(3.14, 3, t)], 1e-1,
19797- 1e-1, 1e-5, _float_types2 ),
19797+ 1e-1, 1e-5, torch.testing.get_all_fp_dtypes() ),
1979819798 ('true_divide', 'tensor', _small_3d,
1979919799 lambda t, d: [_small_3d(t, d, has_zeros=False)], 1e-1,
1980019800 1e-5, 1e-5, _types, _cpu_types, False),
1980119801 ('true_divide', 'tensor_with_inplace', _small_3d,
1980219802 lambda t, d: [_small_3d(t, d, has_zeros=False)], 1e-1,
19803- 1e-1, 1e-5, _float_types2 ),
19803+ 1e-1, 1e-5, torch.testing.get_all_fp_dtypes() ),
1980419804 ('floor_divide', '', _small_3d, lambda t, d: [_number(3.14, 3, t)], 1, 1e-5, 1e-5, _types),
1980519805 ('floor_divide', 'tensor', _small_3d,
1980619806 lambda t, d: [_small_3d(t, d, has_zeros=False)], 1, 1e-5, 1e-5, _types),
@@ -19834,15 +19834,16 @@ def inner(self, device, dtype):
1983419834 ('addcdiv', '', _small_2d,
1983519835 lambda t, d: [_small_2d(t, d),
1983619836 _small_2d(t, d, has_zeros=False)], 1, 1, 1e-3,
19837- _float_types2 , _cpu_types, True),
19837+ torch.testing.get_all_fp_dtypes() , _cpu_types, True),
1983819838 ('addcdiv', 'scalar', _small_2d,
1983919839 lambda t, d: [_number(2.8, 1, t), _small_2d(t, d),
1984019840 _small_2d(t, d, has_zeros=False)], 1, 1e-5, 1e-3,
1984119841 _float_types, _cpu_types, True),
19842- ('addcmul', '', _small_3d, lambda t, d: [_small_3d(t, d), _small_3d(t, d)], 1e-2, 1e-1, 1e-3, _types2),
19842+ ('addcmul', '', _small_3d, lambda t, d: [_small_3d(t, d), _small_3d(t, d)], 1e-2, 1e-1, 1e-3,
19843+ torch.testing.get_all_dtypes(include_complex=False, include_bool=False)),
1984319844 ('addcmul', 'scalar', _small_3d,
1984419845 lambda t, d: [_number(0.4, 2, t), _small_3d(t, d), _small_3d(t, d)], 1e-2,
19845- 1e-1, 1e-5, _types2 , _cpu_types, True,
19846+ 1e-1, 1e-5, torch.testing.get_all_dtypes(include_complex=False, include_bool=False) , _cpu_types, True,
1984619847 [_wrap_maybe_warns("This overload of addcmul_? is deprecated")]),
1984719848 ('addmm', '', _medium_2d, lambda t, d: [_medium_2d(t, d), _medium_2d(t, d)],
1984819849 1e-1, 1e-1, 1e-4, _float_types2, _cpu_types, True, [tf32_on_and_off(0.005)], 0, True),
@@ -19957,9 +19958,9 @@ def inner(self, device, dtype):
1995719958 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
1995819959 ('minimum', '', _medium_2d, lambda t, d: [_medium_2d(t, d)],
1995919960 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
19960- ('mean', '', _small_3d, lambda t, d: [], 1e-3, 1e-2, 1e-5, _float_types2 , _cpu_types, False),
19961- ('mean', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-2, 1e-5, _float_types2 , _cpu_types, False),
19962- ('mean', 'dim', _small_3d, lambda t, d: [1], 1e-3, 1e-2, 1e-2, _float_types2 , _cpu_types, False),
19961+ ('mean', '', _small_3d, lambda t, d: [], 1e-3, 1e-2, 1e-5, torch.testing.get_all_fp_dtypes() , _cpu_types, False),
19962+ ('mean', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-2, 1e-5, torch.testing.get_all_fp_dtypes() , _cpu_types, False),
19963+ ('mean', 'dim', _small_3d, lambda t, d: [1], 1e-3, 1e-2, 1e-2, torch.testing.get_all_fp_dtypes() , _cpu_types, False),
1996319964 # Double here because the CPU result will be wrong otherwise
1996419965 ('mean', '64bit_indexing', _giant_1d, lambda t, d: [],
1996519966 1e-3, 1e-5, 1e-5, [torch.double], _cpu_types, False, [slowTest]),
@@ -19983,7 +19984,7 @@ def inner(self, device, dtype):
1998319984 ('std', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
1998419985 ('var', '', _small_3d, lambda t, d: [], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
1998519986 ('var', 'dim', _small_3d, lambda t, d: [1], 1e-3, 1e-5, 1e-5, _float_types, _cpu_types, False),
19986- ('var', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-2, 1e-5, _float_types2 , _cpu_types, False),
19987+ ('var', 'neg_dim', _small_3d, lambda t, d: [-1], 1e-3, 1e-2, 1e-5, torch.testing.get_all_fp_dtypes() , _cpu_types, False),
1998719988 ('ndimension', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
1998819989 ('nelement', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
1998919990 ('numel', '', _small_3d, lambda t, d: [], 1e-5, 1e-5, 1e-5, _types, _cpu_types, False),
0 commit comments