mmcv
mmcv copied to clipboard
Improve the logic for find free port in distributed training
- we should log the updated free port to inform users since it is different from the expected port
- what if the port set by users is not free? This PR does not fix such a case, which is also a common case.
Originally posted by @ZwwWayne in https://github.com/open-mmlab/mmcv/pull/1846#discussion_r846723708