You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do I encounter a situation where the sentence list does not match the encoding list when I use start_rultisprocess_pool() to start the process pool and then start Python multithreading
eg:
batchNum:1 queLen: 100, embLen: 98
batchNum:2 queLen: 100, embLen: 102
batchNum:3 queLen: 100, embLen: 102
batchNum:4 queLen: 100, embLen: 98
You can see that I output the sentence list length and encoding list length for four batches. Why did my first batch encode 2 sentences less, and the two sentences that were encoded less went to the second batch. Similarly, the third batch encoded two extra sentences, and the two extra encoded sentences ran to the fourth batch.
The text was updated successfully, but these errors were encountered:
Why do I encounter a situation where the sentence list does not match the encoding list when I use start_rultisprocess_pool() to start the process pool and then start Python multithreading
eg:
batchNum:1 queLen: 100, embLen: 98
batchNum:2 queLen: 100, embLen: 102
batchNum:3 queLen: 100, embLen: 102
batchNum:4 queLen: 100, embLen: 98
You can see that I output the sentence list length and encoding list length for four batches. Why did my first batch encode 2 sentences less, and the two sentences that were encoded less went to the second batch. Similarly, the third batch encoded two extra sentences, and the two extra encoded sentences ran to the fourth batch.
The text was updated successfully, but these errors were encountered: