mindspore/docs/api/api_python/mint/mindspore.mint.distributed....

25 lines
867 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.mint.distributed.get_backend
==========================================
.. py:function:: mindspore.mint.distributed.get_backend(group=None)
在指定通信组中获取当前分布式后端的名称。
.. note::
- 后端类型包含 ``"hccl"````"nccl"````"mccl"`` ,当前仅支持 ``"hccl"````"mccl"``
- 当前仅支持PyNative模式不支持Graph模式。
参数:
- **group** (str可选) - 通信组名称,通常由 :func:`mindspore.mint.distributed.new_group` 方法创建,如果为 ``None`` Ascend平台表示为 ``"hccl_world_group"`` 。 默认值: ``None``
返回:
str分布式后端的名称。
异常:
- **TypeError** - 参数 `group` 不是字符串。
样例:
.. note::
.. include:: mindspore.mint.comm_note.rst