- paddle.distributed. destroy_process_group ( group=None ) [source]
Destroy a given group for communication
group (ProcessGroup, optional) – The group to be destroyed. All of process groups, including the default group, will be destroyed and the distributed environment will be deinitialized.
Returns : None
# required: distributed import paddle import paddle.distributed as dist dist.init_parallel_env() group = dist.new_group([0, 1]) dist.destroy_process_group(group) print(dist.is_initialized()) # True dist.destroy_process_group() print(dist.is_initialized()) # False