Skip to content
Snippets Groups Projects
Unverified Commit 8d620e59 authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

Directly import from collections.abc (#427)

parent 438e8e74
No related branches found
No related tags found
No related merge requests found
......@@ -12,12 +12,7 @@ from torch import distributed as torch_dist
from torch.distributed import ProcessGroup
from mmengine.device import is_mlu_available
try:
# for python < 3.10
from collections import Iterable, Mapping
except ImportError:
# for python >= 3.10
from collections.abc import Iterable, Mapping
from collections.abc import Iterable, Mapping
_LOCAL_PROCESS_GROUP = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment