69e3319c4bffaa78823be2267f036d3d3fdf286e,tensorlayer/layers/activation.py,PTRelu6,forward,#PTRelu6#Any#,237

Before Change


                "name": "ptrelu6_activation"
            }
        )
        return outputs

After Change



    def forward(self, inputs):
        pos = tf.nn.relu(inputs)
        pos_6 = -tf.nn.relu(inputs - 6) + self.alpha_high_constrained * tf.nn.relu(inputs - 6)
        neg = -self.alpha_low_constrained * tf.nn.relu(-inputs)

        return pos + pos_6 + neg
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/activation.py
Class Name: PTRelu6
Method Name: forward


Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/activation.py
Class Name: PRelu6
Method Name: forward


Project Name: keras-team/keras
Commit Name: 7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a
Time: 2015-09-25
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/advanced_activations.py
Class Name: LeakyReLU
Method Name: get_output