get_backend

paddle.distributed. get_backend ( group=None ) [source]

Get the backend of given group.

Parameters

group (Group) – The group to work on. Use the global group as default.

Returns

Returns the name of the given group backend.

Examples

>>> 
>>> import paddle

>>> paddle.distributed.init_parallel_env()
>>> paddle.distributed.get_backend()
NCCL