e61955b5553d98b4346817e0e9161f79fb23a40c,sonnet/python/modules/nets/alexnet_test.py,AlexNetTest,testNoDropoutInTesting,#AlexNetTest#,118
Before Change
with self.test_session() as sess:
sess.run(tf.global_variables_initializer())
with self.assertRaisesRegexp(tf.errors.InvalidArgumentError, "keep_prob"):
sess.run(output, feed_dict={inputs: np.random.rand(10, *input_shape),
keep_prob: 0.7})
// No exception if keep_prob=1
sess.run(output, feed_dict={inputs: np.random.rand(10, *input_shape),
keep_prob: 1.0})
def testInputTooSmall(self):
Check that an error is raised if the input image is too small.
After Change
// No exception if keep_prob=1
output = net(inputs, keep_prob=1.0, is_training=False)
self.evaluate(output)
def testInputTooSmall(self):
Check that an error is raised if the input image is too small.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: deepmind/sonnet
Commit Name: e61955b5553d98b4346817e0e9161f79fb23a40c
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/nets/alexnet_test.py
Class Name: AlexNetTest
Method Name: testNoDropoutInTesting
Project Name: deepmind/sonnet
Commit Name: e61955b5553d98b4346817e0e9161f79fb23a40c
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/nets/alexnet_test.py
Class Name: AlexNetTest
Method Name: testNoDropoutInTesting
Project Name: deepmind/sonnet
Commit Name: e61955b5553d98b4346817e0e9161f79fb23a40c
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/nets/convnet_test.py
Class Name: ConvNet2DTransposeTest
Method Name: testTranspose
Project Name: deepmind/sonnet
Commit Name: e61955b5553d98b4346817e0e9161f79fb23a40c
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/nets/mlp_test.py
Class Name: MLPTest
Method Name: testTranspose