is_available

paddle.distributed. is_available ( ) [source]

Check whether the distributed package is available.

Returns

Returns True if the distributed package is available, otherwise False.

Examples

>>> import paddle
>>> print(paddle.distributed.is_available())