f7c759ca562303127a9991574d5a985d4dff99e8,sonnet/python/modules/gated_rnn_test.py,LSTMTest,testSameInStaticAndDynamicWithBatchNorm,#LSTMTest#,541

Before Change


    test_static_output = tf.stack(test_static_output_unpacked, axis=1)

    with self.test_session() as session:
      tf.global_variables_initializer().run()

      def check_static_and_dynamic(training):
        // Check that static and dynamic give the same output

After Change


      return static_output, dynamic_output

    ops = connect(training=True)
    self.evaluate(tf.global_variables_initializer())
    static_out, dynamic_out = self.evaluate(ops)
    self.assertAllClose(static_out, dynamic_out)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: deepmind/sonnet
Commit Name: f7c759ca562303127a9991574d5a985d4dff99e8
Time: 2018-07-17
Author: tomhennigan@google.com
File Name: sonnet/python/modules/gated_rnn_test.py
Class Name: LSTMTest
Method Name: testSameInStaticAndDynamicWithBatchNorm


Project Name: tryolabs/luminoth
Commit Name: 1193b8100325b10636e5076d2b88f6f1ddb5ce25
Time: 2017-09-19
Author: javirey@gmail.com
File Name: luminoth/train.py
Class Name:
Method Name: run


Project Name: tflearn/tflearn
Commit Name: 334889b15ee80051b9fb97bf312fc52184c85f97
Time: 2016-12-14
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: __init__


Project Name: tryolabs/luminoth
Commit Name: 4ec258a2261a943910a34be1b7d53a646f089367
Time: 2018-04-16
Author: joaquin.alori@gmail.com
File Name: luminoth/train.py
Class Name:
Method Name: run


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