c51e7b8d6534a7379e897d6188ecb626f3a775e2,tests/activation_test.py,ActivationTest,test_2d_relu_shape,#ActivationTest#,127
Before Change
// 2d test
def test_2d_relu_shape(self):
x = self.get_2d_input()
relu_layer = ActiLayer(func="relu")
out_relu = relu_layer(x)
print(relu_layer)
with self.test_session() as sess:
sess.run(tf.global_variables_initializer())
out = sess.run(out_relu)
self.assertAllClose((2, 16, 16, 8), out.shape)
def test_2d_relu6_shape(self):
x = self.get_2d_input()
relu6_layer = ActiLayer(func="relu6")
out_relu6 = relu6_layer(x)
After Change
// 2d test
def test_2d_relu_shape(self):
self.run_test(False, "relu", (2, 16, 16, 8))
def test_2d_relu6_shape(self):
self.run_test(False, "relu6", (2, 16, 16, 8))
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 12
Instances
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_relu_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_relu_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_softsign_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_prelu_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_elu_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_sigmoid_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_relu6_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_softplus_shape
Project Name: NifTK/NiftyNet
Commit Name: c51e7b8d6534a7379e897d6188ecb626f3a775e2
Time: 2017-08-29
Author: wenqi.li@ucl.ac.uk
File Name: tests/activation_test.py
Class Name: ActivationTest
Method Name: test_2d_tanh_shape