c51e7b8d6534a7379e897d6188ecb626f3a775e2,tests/activation_test.py,ActivationTest,test_2d_softplus_shape,#ActivationTest#,157
Before Change
self.assertAllClose((2, 16, 16, 8), out.shape)
def test_2d_softplus_shape(self):
x = self.get_2d_input()
softplus_layer = ActiLayer(func="softplus")
out_softplus = softplus_layer(x)
print(softplus_layer)
with self.test_session() as sess:
sess.run(tf.global_variables_initializer())
out = sess.run(out_softplus)
self.assertAllClose((2, 16, 16, 8), out.shape)
def test_2d_softsign_shape(self):
x = self.get_2d_input()
softsign_layer = ActiLayer(func="softsign")
out_softsign = softsign_layer(x)
After Change
self.run_test(False, "elu", (2, 16, 16, 8))
def test_2d_softplus_shape(self):
self.run_test(False, "softplus", (2, 16, 16, 8))
def test_2d_softsign_shape(self):
self.run_test(False, "softsign", (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_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_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_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_tanh_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_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_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_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_sigmoid_shape