806731155aa059ce4f6297d75f9dbfb2f0dad7ad,tests/models/encoder_decoders/simple_seq2seq_test.py,SimpleSeq2SeqWithoutAttentionTest,test_decode_runs_correctly,#SimpleSeq2SeqWithoutAttentionTest#,35

Before Change


        assert numpy.equal(expected_loss.data.numpy(), actual_loss.data.numpy())

    def test_decode_runs_correctly(self):
        training_arrays = arrays_to_variables(self.dataset.as_array_dict())
        output_dict = self.model.forward(**training_arrays)
        decode_output_dict = self.model.decode(output_dict)
        // ``decode`` should have added a ``predicted_tokens`` field to ``output_dict``. Checking if it"s there.
        assert "predicted_tokens" in decode_output_dict

After Change


        assert numpy.equal(expected_loss.data.numpy(), actual_loss.data.numpy())

    def test_decode_runs_correctly(self):
        training_tensors = self.dataset.as_tensor_dict()
        output_dict = self.model.forward(**training_tensors)
        decode_output_dict = self.model.decode(output_dict)
        // ``decode`` should have added a ``predicted_tokens`` field to ``output_dict``. Checking if it"s there.
        assert "predicted_tokens" in decode_output_dict
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: allenai/allennlp
Commit Name: 806731155aa059ce4f6297d75f9dbfb2f0dad7ad
Time: 2017-12-06
Author: mattg@allenai.org
File Name: tests/models/encoder_decoders/simple_seq2seq_test.py
Class Name: SimpleSeq2SeqWithoutAttentionTest
Method Name: test_decode_runs_correctly


Project Name: allenai/allennlp
Commit Name: 806731155aa059ce4f6297d75f9dbfb2f0dad7ad
Time: 2017-12-06
Author: mattg@allenai.org
File Name: tests/models/semantic_role_labeler_test.py
Class Name: SemanticRoleLabelerTest
Method Name: test_decode_runs_correctly


Project Name: allenai/allennlp
Commit Name: 806731155aa059ce4f6297d75f9dbfb2f0dad7ad
Time: 2017-12-06
Author: mattg@allenai.org
File Name: tests/models/decomposable_attention_test.py
Class Name: TestDecomposableAttention
Method Name: test_forward_pass_runs_correctly


Project Name: allenai/allennlp
Commit Name: 806731155aa059ce4f6297d75f9dbfb2f0dad7ad
Time: 2017-12-06
Author: mattg@allenai.org
File Name: tests/models/semantic_role_labeler_test.py
Class Name: SemanticRoleLabelerTest
Method Name: test_forward_pass_runs_correctly


Project Name: allenai/allennlp
Commit Name: 806731155aa059ce4f6297d75f9dbfb2f0dad7ad
Time: 2017-12-06
Author: mattg@allenai.org
File Name: tests/models/reading_comprehension/bidaf_test.py
Class Name: BidirectionalAttentionFlowTest
Method Name: test_forward_pass_runs_correctly