Commit 479e666b authored by Karl Ostmo's avatar Karl Ostmo Committed by Vincent QB
Browse files

Fix random seed for flaky test_griffinlim test (#388)

closes #382
parent e0f261f3
......@@ -71,6 +71,10 @@ class TestFunctional(unittest.TestCase):
@unittest.skipIf(not IMPORT_LIBROSA, 'Librosa not available')
def test_griffinlim(self):
# NOTE: This test is flaky without a fixed random seed
# See https://github.com/pytorch/audio/issues/382
torch.random.manual_seed(42)
tensor = torch.rand((1, 1000))
n_fft = 400
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment