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

predict(python) function use too much cpu #2225

Closed
Yang-HangWA opened this issue Jun 12, 2019 · 1 comment
Closed

predict(python) function use too much cpu #2225

Yang-HangWA opened this issue Jun 12, 2019 · 1 comment

Comments

@Yang-HangWA
Copy link

When I load my model to do predict work, it seems the predict function default use too much resources of the server. Is there a way to set the usage of cpu?

@Yang-HangWA Yang-HangWA changed the title python predict function use too much cpu predict(python) function use too much cpu Jun 12, 2019
@StrikerRUS
Copy link
Collaborator

You can set it with num_threads param in predict method.
Refer to #1534, #1340.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants