69e3319c4bffaa78823be2267f036d3d3fdf286e,tests/test_activations.py,Test_Leaky_ReLUs,test_ltrelu6,#Test_Leaky_ReLUs#,74
Before Change
else:
good_output = 6 + (self.alpha * (i - 6))
computed_output = self.sess.run(self.ltrelu6_out, feed_dict={self.input_var: i})
self.assertAlmostEqual(computed_output, good_output, places=5)
net = tl.layers.Input([10, 200])
net = tl.layers.Dense(n_units=100, act=lambda x : tl.act.leaky_twice_relu6(x, 0.2, 0.2), name="dense")(net)
After Change
else:
good_output = 6 + (self.alpha * (i - 6))
computed_output = tl.act.leaky_twice_relu6(float(i), alpha_low=self.alpha, alpha_high=self.alpha)
self.assertAlmostEqual(computed_output.numpy(), good_output, places=5)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 6
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_ltrelu6
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_lrelu
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_ramp
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_lrelu6
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_swish
Project Name: tensorlayer/tensorlayer
Commit Name: 69e3319c4bffaa78823be2267f036d3d3fdf286e
Time: 2019-03-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/test_activations.py
Class Name: Test_Leaky_ReLUs
Method Name: test_sign