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

请教一下是否可以多线程并行? #9

Open
shop668 opened this issue Mar 28, 2023 · 1 comment
Open

请教一下是否可以多线程并行? #9

shop668 opened this issue Mar 28, 2023 · 1 comment
Assignees

Comments

@shop668
Copy link

shop668 commented Mar 28, 2023

你好,首先非常感谢分享。
想请教一下,RapidAsrRecogFile 是否可以多线程并行运行?
就是说使用RapidAsrInit初始化一次模型获得的句柄,是否可以多线程中并行调用RapidAsrRecogFile?

多谢

@znsoftm
Copy link
Member

znsoftm commented Apr 3, 2023

可以的,句柄是线程安全的。 不过,最好不要同时处理多个文件,毕竟是ai程序,占用很大的cpu资源,并发处理并不能提升速度。

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

2 participants