We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题 为什么用在encode里用queue来异步获取句向量呢?而且我看里面设置的queue的长度为1,如果有并发的时候 会不会导致丢失数据呢
The text was updated successfully, but these errors were encountered:
@BucherLi estimator执行predict每次都会去加载图,用queue能避免这个问题
Sorry, something went wrong.
estimator执行predict每次都会去加载图,用queue能避免这个问题
并发安全吗,多线程同时调用encode的时候。会不会造成数据丢失,是不是得给queue加锁
@terrifyzhao 并发安全吗,多线程同时调用encode的时候。会不会造成数据丢失,是不是得给queue加锁
No branches or pull requests
如题 为什么用在encode里用queue来异步获取句向量呢?而且我看里面设置的queue的长度为1,如果有并发的时候 会不会导致丢失数据呢
The text was updated successfully, but these errors were encountered: