Skip to content

test_nuclear_norm_axes_small_brute_force is flaky #21785

@ezyang

Description

@ezyang
Jun 14 15:36:31 ======================================================================
Jun 14 15:36:31 FAIL: test_nuclear_norm_axes_small_brute_force (__main__.TestCuda)
Jun 14 15:36:31 ----------------------------------------------------------------------
Jun 14 15:36:31 Traceback (most recent call last):
Jun 14 15:36:31   File "/var/lib/jenkins/workspace/test/common_utils.py", line 399, in wrapper
Jun 14 15:36:31     method(*args, **kwargs)
Jun 14 15:36:31   File "/var/lib/jenkins/workspace/test/common_utils.py", line 399, in wrapper
Jun 14 15:36:31     method(*args, **kwargs)
Jun 14 15:36:31   File "test_cuda.py", line 2696, in test_nuclear_norm_axes_small_brute_force
Jun 14 15:36:31     _TestTorchMixin._test_nuclear_norm_axes(self, device='cuda')
Jun 14 15:36:31   File "/var/lib/jenkins/workspace/test/test_torch.py", line 1052, in _test_nuclear_norm_axes
Jun 14 15:36:31     check_single_nuclear_norm(x, axes)
Jun 14 15:36:31   File "/var/lib/jenkins/workspace/test/test_torch.py", line 994, in check_single_nuclear_norm
Jun 14 15:36:31     self.assertTrue(np.allclose(ans.cpu(), expected, rtol=1e-02, atol=1e-03))
Jun 14 15:36:31 AssertionError: False is not true
Jun 14 15:36:31 
Jun 14 15:36:31 ----------------------------------------------------------------------
Jun 14 15:36:31 Ran 2140 tests in 129.723s

https://circleci.com/gh/pytorch/pytorch/1997492

First thing to check is if we're deterministically seeding correctly. If we are, then check for access to uninitialized memory.

cc @skrah

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: flaky-testsProblem is a flaky test in CImodule: testsIssues related to tests (not the torch.testing module)triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions