mindspore.ops.communication.get_backend ======================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://atomgit.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.communication.get_backend.rst :alt: 查看源文件 .. py:function:: mindspore.ops.communication.get_backend(group=None) 获取通信进程组的后端。 .. note:: MindSpore每个进程仅支持一个通信后端。它应该是 `hccl`/`nccl`/`mccl` 之一。目前仅支持hccl和mccl。 参数: - **group** (str,可选) - 要工作的通信组。通常,组应由 :func:`mindspore.ops.communication.new_group` 创建,默认值: ``None``,在Ascend中表示 ``"hccl_world_group"``。 返回: str,组的后端。 异常: - **TypeError** - 如果 `group` 不是str。 样例: .. note:: .. include:: ../mint/mindspore.mint.comm_note.txt