-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does bert_encode() thread-safe for online embedding? #11
Comments
I found that different invocation shares same memory buffer in bert_context, it may not be thread-safe for online-embedding situation |
Yup, that seems right. Good news is that we got merged into |
Can you help explain the implementation mechanism? |
Sure! The major difference from this one is the way that batching works. Here we have explicit batch sizes for each sequence, and so we need to pad them to alignment. In the Is that what you were looking for? Happy to provide more specifics. |
thank you so much! This seems only support multi-thread in batch? |
No description provided.
The text was updated successfully, but these errors were encountered: