-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Description
A series of recent unrelated PRs exposed the fact that DeformConv2d
's autocast unit-test is flaky and it can fail if we hit a bad seed. To resolve the problem, PR #3032 introduced a temporary workaround that fixes the random_seed:
Lines 657 to 659 in 06ebee1
@unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable") | |
def test_autocast(self): | |
set_rng_seed(0) |
The above is not a great solution. We should investigate and fix the problem properly by adjusting the unit-test.
To reproduce the issue, remove the set_rng_seed
call from the test and rerun it.