c1ef2edd61a7a5524ed81de17ca185d9e53346df,test/torchaudio_unittest/functional/autograd_impl.py,Autograd,test_lfilter_a,#Autograd#,16
Before Change
def test_lfilter_a(self):
torch.random.manual_seed(2434)
x = torch.rand(2, 4, 256 * 2, dtype=self.dtype, device=self.device)
a = torch.tensor([0.7, 0.2, 0.6], dtype=self.dtype, device=self.device)
b = torch.tensor([0.4, 0.2, 0.9], dtype=self.dtype, device=self.device)
a.requires_grad = True
assert gradcheck(F.lfilter, (x, a, b), eps=1e-10)
After Change
def test_lfilter_a(self):
torch.random.manual_seed(2434)
x = get_whitenoise(sample_rate=22050, duration=0.05, n_channels=2)
a = torch.tensor([0.7, 0.2, 0.6])
b = torch.tensor([0.4, 0.2, 0.9])
a.requires_grad = True
self.assert_grad(F.lfilter, (x, a, b), enable_all_grad=False)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: pytorch/audio
Commit Name: c1ef2edd61a7a5524ed81de17ca185d9e53346df
Time: 2021-04-07
Author: ya70201@gmail.com
File Name: test/torchaudio_unittest/functional/autograd_impl.py
Class Name: Autograd
Method Name: test_lfilter_a
Project Name: pytorch/audio
Commit Name: c1ef2edd61a7a5524ed81de17ca185d9e53346df
Time: 2021-04-07
Author: ya70201@gmail.com
File Name: test/torchaudio_unittest/functional/autograd_impl.py
Class Name: Autograd
Method Name: test_lfilter_a
Project Name: pytorch/audio
Commit Name: c1ef2edd61a7a5524ed81de17ca185d9e53346df
Time: 2021-04-07
Author: ya70201@gmail.com
File Name: test/torchaudio_unittest/functional/autograd_impl.py
Class Name: Autograd
Method Name: test_lfilter_b
Project Name: pytorch/audio
Commit Name: c1ef2edd61a7a5524ed81de17ca185d9e53346df
Time: 2021-04-07
Author: ya70201@gmail.com
File Name: test/torchaudio_unittest/functional/autograd_impl.py
Class Name: Autograd
Method Name: test_lfilter_all_inputs
Project Name: pytorch/audio
Commit Name: c1ef2edd61a7a5524ed81de17ca185d9e53346df
Time: 2021-04-07
Author: ya70201@gmail.com
File Name: test/torchaudio_unittest/functional/autograd_impl.py
Class Name: Autograd
Method Name: test_lfilter_x