e302434106d43d9f38a0360211421bc468b9291d,test/test_functional_filtering.py,TestFunctionalFiltering,test_lfilter,#TestFunctionalFiltering#,32

Before Change


        

        b_coeffs = torch.tensor(
            [
                0.00299893,
                -0.0051152,
                0.00841964,
                -0.00747802,
                0.00841964,
                -0.0051152,
                0.00299893,
            ]
        )
        a_coeffs = torch.tensor(
            [
                1.0,
                -4.8155751,
                10.2217618,
                -12.14481273,
                8.49018171,
                -3.3066882,
                0.56088705,
            ]
        )

        filepath = os.path.join(self.test_dirpath, "assets", "whitenoise.mp3")
        waveform, sample_rate = torchaudio.load(filepath, normalization=True)
        output_waveform = F.lfilter(waveform, a_coeffs, b_coeffs)
        assert len(output_waveform.size()) == 2
        assert output_waveform.size(0) == waveform.size(0)
        assert output_waveform.size(1) == waveform.size(1)

After Change


        filepath = os.path.join(self.test_dirpath, "assets", "whitenoise.mp3")
        waveform, _ = torchaudio.load(filepath, normalization=True)

        self._test_lfilter(waveform, torch.device("cpu"))

    def test_lfilter_gpu(self):
        if torch.cuda.is_available():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: pytorch/audio
Commit Name: e302434106d43d9f38a0360211421bc468b9291d
Time: 2019-09-19
Author: engineerchuan@gmail.com
File Name: test/test_functional_filtering.py
Class Name: TestFunctionalFiltering
Method Name: test_lfilter


Project Name: pytorch/audio
Commit Name: e302434106d43d9f38a0360211421bc468b9291d
Time: 2019-09-19
Author: engineerchuan@gmail.com
File Name: test/test_functional_filtering.py
Class Name: TestFunctionalFiltering
Method Name: test_lfilter_basic


Project Name: arraiy/torchgeometry
Commit Name: 0b94940f31114060b80fa6d35384c444ba81b540
Time: 2019-11-01
Author: edgar.riba@gmail.com
File Name: test/common.py
Class Name:
Method Name: get_test_devices


Project Name: tensorflow/tensorflow
Commit Name: b4e21d815a8421003b6b3c0c4b59cde7f056c647
Time: 2020-11-20
Author: reedwm@google.com
File Name: tensorflow/python/ops/batch_ops_test.py
Class Name: BatchOpsTest
Method Name: testBatchDecoratedWithCapturedInput


Project Name: tensorflow/cleverhans
Commit Name: 659ce5ec79badf4d14ca4954118492627da62e39
Time: 2017-11-10
Author: fartash.faghri@gmail.com
File Name: examples/multigpu_advtrain/attacks_multigpu.py
Class Name: MadryEtAlMultiGPU
Method Name: generate_np


Project Name: naoto0804/pytorch-AdaIN
Commit Name: 4a5eef64d2a0ab5e1737ffbb345d9e72d2f1adc9
Time: 2018-05-16
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: train.py
Class Name:
Method Name: