Skip to content
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

RuntimeError: could not execute a primitive #1658

Closed
luoan7248 opened this issue Feb 6, 2025 · 3 comments
Closed

RuntimeError: could not execute a primitive #1658

luoan7248 opened this issue Feb 6, 2025 · 3 comments

Comments

@luoan7248
Copy link

flask的问题,换成fastapi就好了

Originally posted by @linguishi in #727

并发请求的时候还是会出现这个问题

@wsy000-com
Copy link

多进程能解决

@myhloli
Copy link
Collaborator

myhloli commented Feb 7, 2025

可以尝试通过以下方法解决该问题:

  1. 使用gpu版本的paddlepaddle
  2. 使用多进程代替多线程

@luoan7248
Copy link
Author

可以了,多进程可以解决

@myhloli myhloli closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants