mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Increase tolerance for test_corrcoef_cuda_int32 (#157206)
Fixes #156988 Pull Request resolved: https://github.com/pytorch/pytorch/pull/157206 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
e959dd017d
commit
b147b6c0e3
@ -2324,7 +2324,7 @@ else:
|
||||
for x in self._generate_correlation_tensors(device, dtype):
|
||||
res = torch.corrcoef(x)
|
||||
ref = np.corrcoef(x.cpu().numpy())
|
||||
self.assertEqual(res, ref, exact_dtype=False)
|
||||
self.assertEqual(res, ref, atol=1e-04, rtol=1e-03, exact_dtype=False)
|
||||
|
||||
@skipRocmIfTorchInductor
|
||||
@dtypes(torch.int, torch.float, torch.cfloat)
|
||||
|
Reference in New Issue
Block a user