af2c2bf7dc00ddade0916b41de6e2aca3a0b2753,test/test_transforms.py,Tester,test_librosa_consistency,#Tester#,202

Before Change


        // test s2db

        db_transform = torchaudio.transforms.SpectrogramToDB("power", 80.)
        db_torch = db_transform(spect_transform(sound)).squeeze().cpu().numpy().T
        db_librosa = librosa.core.spectrum.power_to_db(out_librosa)
        self.assertTrue(np.allclose(db_torch, db_librosa, atol=5e-3))

After Change



            self.assertTrue(torch.allclose(torch_mfcc.type(torch.double), torch.from_numpy(librosa_mfcc), atol=5e-3))

        kwargs1 = {
            "n_fft": 400,
            "hop_length": 200,
            "power": 2.0,
            "n_mels": 128,
            "n_mfcc": 40,
            "sample_rate": 16000
        }

        kwargs2 = {
            "n_fft": 600,
            "hop_length": 100,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pytorch/audio
Commit Name: af2c2bf7dc00ddade0916b41de6e2aca3a0b2753
Time: 2019-05-22
Author: jamarshon@fb.com
File Name: test/test_transforms.py
Class Name: Tester
Method Name: test_librosa_consistency


Project Name: ixaxaar/pytorch-dnc
Commit Name: 4079060908ec43d01e86665792b165269c9545b4
Time: 2017-11-02
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward


Project Name: ixaxaar/pytorch-dnc
Commit Name: 0bab77b7cadae1aaff59a2efcacc39bc9a9d3ecc
Time: 2017-11-02
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward