ff47955cfb832263dc45d8b259f8e15d7e274f17,torchaudio/datasets/vctk.py,,read_audio,#Any#Any#,34

Before Change


    if downsample:
        // 48khz -> 16 khz
        if sig.size(0) % 3 == 0:
            sig = sig.view(3, -1, sig.size(1)).mean(0)
        else:
            sig = sig[:-(sig.size(0) % 3)].view(3, -1, sig.size(1)).mean(0)
    return sig, sr

After Change


    if downsample:
        // 48khz -> 16 khz
        if sig.size(0) % 3 == 0:
            sig = sig[::3].contiguous()
        else:
            sig = sig[:-(sig.size(0) % 3):3].contiguous()
    return sig, sr
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pytorch/audio
Commit Name: ff47955cfb832263dc45d8b259f8e15d7e274f17
Time: 2017-08-18
Author: david@da3.net
File Name: torchaudio/datasets/vctk.py
Class Name:
Method Name: read_audio


Project Name: DagnyT/hardnet
Commit Name: 24a5450e4ca094ae4edbda26f8f29ae012721779
Time: 2017-07-25
Author: ducha.aiki@gmail.com
File Name: Losses.py
Class Name:
Method Name: loss_HardNet


Project Name: maciejkula/spotlight
Commit Name: bc51dbc0c56f68ed30857755026633f78eef1ae8
Time: 2017-08-20
Author: maciej.kula@gmail.com
File Name: spotlight/layers.py
Class Name: BloomEmbedding
Method Name: forward