mmengine.dist.barrier¶
- mmengine.dist.barrier(group=None)[源代码]¶
Synchronize all processes from the given process group.
This collective blocks processes until the whole group enters this function.
备注
Calling
barrier
in non-distributed environment will do nothing.- 参数:
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. Defaults to None.
- 返回类型:
None