e967f1c82f1577fded52732e68f9128c98927692,opennmt/tests/encoder_test.py,EncoderTest,testParallelEncoderCombinedOutputLayer,#EncoderTest#,208

Before Change


  @test_util.run_tf1_only
  def testParallelEncoderCombinedOutputLayer(self):
    sequence_length = [4, 6, 5]
    inputs = _build_dummy_sequences(sequence_length)
    outputs, _, encoded_length = self._encodeInParallel(
        inputs,
        sequence_length=sequence_length,
        combined_output_layer_fn=lambda x: tf.layers.dense(x, 15))

After Change



  def testParallelEncoderCombinedOutputLayer(self):
    sequence_length = tf.constant([2, 5, 4], dtype=tf.int32)
    inputs = tf.zeros([3, 5, 10])
    outputs = self._encodeInParallel(
        inputs,
        sequence_length=sequence_length,
        combined_output_layer_fn=tf.keras.layers.Dense(15))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 5

Instances


Project Name: OpenNMT/OpenNMT-tf
Commit Name: e967f1c82f1577fded52732e68f9128c98927692
Time: 2019-02-20
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testParallelEncoderCombinedOutputLayer


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 4fd8961026fdab7e17817083b96f59157bd0ca09
Time: 2019-03-27
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testConvEncoder


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 4fd8961026fdab7e17817083b96f59157bd0ca09
Time: 2019-03-27
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testPyramidalEncoderShortSequences


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 4fd8961026fdab7e17817083b96f59157bd0ca09
Time: 2019-03-27
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testRNMTPlusEncoder


Project Name: OpenNMT/OpenNMT-tf
Commit Name: e967f1c82f1577fded52732e68f9128c98927692
Time: 2019-02-20
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: _encodeAndProjectInParallel


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 4fd8961026fdab7e17817083b96f59157bd0ca09
Time: 2019-03-27
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testPyramidalEncoder


Project Name: OpenNMT/OpenNMT-tf
Commit Name: e967f1c82f1577fded52732e68f9128c98927692
Time: 2019-02-20
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/encoder_test.py
Class Name: EncoderTest
Method Name: testParallelEncoder