3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2,torchaudio/transforms.py,DownmixMono,__call__,#DownmixMono#Any#,140

Before Change


        self.ch_dim = int(not channels_first)

    def __call__(self, tensor):
        if isinstance(tensor, (torch.LongTensor, torch.IntTensor)):
            tensor = tensor.float()

        tensor = torch.mean(tensor, self.ch_dim, True)

After Change


        self.ch_dim = int(not channels_first)

    def __call__(self, tensor):
        if not tensor.is_floating_point():
            tensor = tensor.to(torch.float32)

        tensor = torch.mean(tensor, self.ch_dim, True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pytorch/audio
Commit Name: 3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2
Time: 2019-01-04
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: DownmixMono
Method Name: __call__


Project Name: pytorch/audio
Commit Name: 3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2
Time: 2019-01-04
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: MuLawExpanding
Method Name: __call__


Project Name: pytorch/audio
Commit Name: 3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2
Time: 2019-01-04
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: MuLawEncoding
Method Name: __call__


Project Name: pytorch/audio
Commit Name: 3bd4db86630b75bbbfb6c5c0a1a85603097bf9b2
Time: 2019-01-04
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: Scale
Method Name: __call__