mindspore.runtime.dispatch_threads_num ======================================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/runtime/mindspore.runtime.dispatch_threads_num.rst :alt: 查看源文件 .. py:function:: mindspore.runtime.dispatch_threads_num(threads_num) 设置运行时要使用的线程数。 框架默认运行时的线程数为5。 参数: - **threads_num** (int) - 要设置的线程数。