mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-02 20:27:35 +08:00
Merge branch 'master' of github.com:fastnlp/fastNLP into dev
This commit is contained in:
commit
d9e0450ae7
@ -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…
Reference in New Issue
Block a user