typeError:can can can‘

发布于 2025-02-02 21:51:10 字数 106 浏览 4 评论 0原文

我使用烧瓶提供模型服务,当使用多个进程加快获得模型结果时,会遇到此问题,然后将模型初始化方法传递给池,但需要时间。如何初始化模型进程池初始化烧瓶服务?调用烧瓶接口时,将参数传递到进程池以获取模型结果

I Using flask to provide model services, this problem is encountered when using multiple processes to speed up obtaining model results, then the model initialization method is also passed to the pool, but it takes time. How to initialize the model process pool when initializing the flask service?When calling the flask interface, pass parameters to the process pool to get the model results

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文