-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
用paddle C-API做预测,更新模型出错 #4297
Labels
User
用于标记用户问题
Comments
请先按照 #3575 看下是否存在类似的问题 |
问题已经解决。谢谢了。 |
@Jarlonyan 请问是如何解决的?能否comment一下,可以帮助以后的同学,谢谢 |
我在主线程(线程A)中调用了一次paddle_init,然后主线程又启动了一个新的线程(线程B)用于加载新的模型。如果在线程B中也调用paddle_init,就会报错。我将paddle_init从类的构造函数中提取到进程开始,也就说一个进程只paddle_init一次就OK。 |
非常感谢 @Jarlonyan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在线预测中,加载模型A预测是OK的。现在需要用模型 B替换掉模型A,这个过程是热加载。也就是说在内存中同时有两份模型。现在的问题是:在A加载OK的情况下,再加载B,就爆出下面的错误,程序dump了。请问,这是什么原因呢?
The text was updated successfully, but these errors were encountered: