f1809051ef7d28c59435f36b3ab08c99a0713fdd,glow.py,WN,forward,#WN#Any#,143

Before Change


            in_act = self.in_layers[i](audio)
            in_act = in_act + self.cond_layers[i](spect)

            t_act = torch.nn.functional.tanh(in_act[:, :self.n_channels, :])
            s_act = torch.nn.functional.sigmoid(in_act[:, self.n_channels:, :])
            acts = t_act * s_act

            res_skip_acts = self.res_skip_layers[i](acts)
            if i < self.n_layers - 1:
                audio = res_skip_acts[:,:self.n_channels,:] + audio

After Change


            acts = fused_add_tanh_sigmoid_multiply(
                self.in_layers[i](audio),
                self.cond_layers[i](spect),
                torch.IntTensor([self.n_channels]))

            res_skip_acts = self.res_skip_layers[i](acts)
            if i < self.n_layers - 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NVIDIA/waveglow
Commit Name: f1809051ef7d28c59435f36b3ab08c99a0713fdd
Time: 2018-11-14
Author: rafaelvalle@nvidia.com
File Name: glow.py
Class Name: WN
Method Name: forward


Project Name: NVIDIA/waveglow
Commit Name: 32ceb17f2a90899c952162ea44a4a42ff7f1f1fc
Time: 2018-11-12
Author: alanw@nvidia.com
File Name: glow.py
Class Name: WN
Method Name: forward


Project Name: keras-team/keras
Commit Name: bc5e993ae30a59d7bcdfa03513ecc3d43b58a5f7
Time: 2015-11-19
Author: francois.chollet@gmail.com
File Name: tests/auto/keras/test_activations.py
Class Name: TestActivations
Method Name: test_tanh