Skip to content

Commit

Permalink
Remove test condition that depends on randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
jvamvas authored Dec 27, 2023
1 parent 935089e commit ac918f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def test_model_output_extended(self):
torch.testing.assert_close(output.sequences[0], sample.sequences[0][:output.sequences[0].shape[0]])
else:
torch.testing.assert_close(output.sequences[0][:sample.sequences[0].shape[0]], sample.sequences[0])
torch.testing.assert_close(output.sequences[0], sample.sequences[0])
self.assertIsNotNone(sample.scores)
self.assertEqual(1, len(sample.scores[0]))
self.assertIsNotNone(sample.attentions)
Expand Down

0 comments on commit ac918f1

Please sign in to comment.