Commit 67a49f3c authored by Zhaoheng Ni's avatar Zhaoheng Ni Committed by Facebook GitHub Bot
Browse files

Fix LFCC autograd test (#3154)

Summary:
Autograd test randomly failed on gpu linux machine. Increase `nondet_tol` to make it pass.

Pull Request resolved: https://github.com/pytorch/audio/pull/3154

Reviewed By: mthrok

Differential Revision: D43873028

Pulled By: nateanl

fbshipit-source-id: a6668c47967a085e5eafb00e2dd4e61b2b46412e
parent 502d5811
...@@ -119,7 +119,7 @@ class AutogradTestMixin(TestBaseMixin): ...@@ -119,7 +119,7 @@ class AutogradTestMixin(TestBaseMixin):
sample_rate = 8000 sample_rate = 8000
transform = T.LFCC(sample_rate=sample_rate, log_lf=log_lf) transform = T.LFCC(sample_rate=sample_rate, log_lf=log_lf)
waveform = get_whitenoise(sample_rate=sample_rate, duration=0.05, n_channels=2) waveform = get_whitenoise(sample_rate=sample_rate, duration=0.05, n_channels=2)
self.assert_grad(transform, [waveform]) self.assert_grad(transform, [waveform], nondet_tol=1e-10)
def test_compute_deltas(self): def test_compute_deltas(self):
transform = T.ComputeDeltas() transform = T.ComputeDeltas()
......
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