8cdbb1637b140c01f431831e7b2c2a63afc96209,kapre/time_frequency.py,Melspectrogram,call,#Melspectrogram#Any#,328

Before Change


        if self.image_data_format == "channels_first":
            output = K.permute_dimensions(output, [0, 1, 3, 2])
        else:
            output = K.permute_dimensions(output, [0, 3, 2, 1])
        if self.power_melgram != 2.0:
            output = K.pow(K.sqrt(output), self.power_melgram)
        if self.return_decibel_melgram:
            output = backend_keras.amplitude_to_decibel(output)

After Change



        x = K.conv2d(x, kernel, data_format="channels_last") / self.denom
        if self.data_format == "channels_first":
            x = K.permute_dimensions(x, (0, 3, 1, 2))

        return x
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keunwoochoi/kapre
Commit Name: 8cdbb1637b140c01f431831e7b2c2a63afc96209
Time: 2020-08-14
Author: gnuchoi+github@gmail.com
File Name: kapre/time_frequency.py
Class Name: Melspectrogram
Method Name: call


Project Name: shenweichen/DeepCTR
Commit Name: d15a9563c531f0cd7ea58ddc0198dd5786f90402
Time: 2018-11-26
Author: last.fantasy@qq.com
File Name: deepctr/sequence.py
Class Name: SequencePoolingLayer
Method Name: call


Project Name: keras-team/keras
Commit Name: 47ed18a3af8be20dce91286a331d4671074ee0ca
Time: 2015-11-26
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: TimeDistributedDense
Method Name: get_output