ae55140acfdc6d4eade08b434195234e5ae8c261,pyro/ops/tensor_utils.py,,convolve,#Any#Any#Any#,192

Before Change


    padded_size = m + n - 1
    // Round up for cheaper fft.
    fast_ftt_size = next_fast_len(padded_size)
    f_signal = torch.rfft(torch.nn.functional.pad(signal, (0, fast_ftt_size - m)), 1, onesided=False)
    f_kernel = torch.rfft(torch.nn.functional.pad(kernel, (0, fast_ftt_size - n)), 1, onesided=False)
    f_result = _complex_mul(f_signal, f_kernel)
    result = torch.irfft(f_result, 1, onesided=False)

After Change


    // Round up for cheaper fft.
    fast_ftt_size = next_fast_len(padded_size)
    f_signal = rfft(signal, n=fast_ftt_size)
    f_kernel = rfft(kernel, n=fast_ftt_size)
    f_result = f_signal * f_kernel
    result = irfft(f_result, n=fast_ftt_size)

    start_idx = (padded_size - truncate) // 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: uber/pyro
Commit Name: ae55140acfdc6d4eade08b434195234e5ae8c261
Time: 2020-11-17
Author: fritz.obermeyer@gmail.com
File Name: pyro/ops/tensor_utils.py
Class Name:
Method Name: convolve


Project Name: pytorch/audio
Commit Name: 48d2b57255862a393e553df5bd1fe7a480f99b72
Time: 2020-11-05
Author: 855818+mthrok@users.noreply.github.com
File Name: torchaudio/compliance/kaldi.py
Class Name:
Method Name: fbank


Project Name: uber/pyro
Commit Name: ae55140acfdc6d4eade08b434195234e5ae8c261
Time: 2020-11-17
Author: fritz.obermeyer@gmail.com
File Name: pyro/ops/stats.py
Class Name:
Method Name: autocorrelation