mindspore.dataset.config.set_numa_enable ========================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.3.q1/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/r2.3.q1/docs/api/api_python/dataset/mindspore.dataset.config.set_numa_enable.rst :alt: 查看源文件 .. py:function:: mindspore.dataset.config.set_numa_enable(numa_enable) 设置NUMA的默认状态为启动状态。如果 `numa_enable` 为 ``True`` ,则需要确保安装了 `NUMA库 `_ 。 参数: - **numa_enable** (bool) - 表示是否使用NUMA绑定功能。 异常: - **TypeError** - `numa_enable` 不是bool类型。