Browse Source

Merge branch 'master' of github.com:fastnlp/fastNLP into dev

tags/v1.0.0alpha
WillQvQ 3 years ago
parent
commit
d9e0450ae7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/core/test_batch.py

+ 1
- 1
tests/core/test_batch.py View File

@@ -445,7 +445,7 @@ class TestCase1(unittest.TestCase):
sample_count = 0
for batch_x, batch_y in data_iter:
sample_count += len(batch_x['seq_len'])
self.assertTrue(sum(batch_x['seq_len'])<120)
self.assertTrue(sum(batch_x['seq_len'])<=120)
self.assertEqual(sample_count, num_samples)

"""


Loading…
Cancel
Save