There was an error while loading. Please reload this page.
2 parents db6128d + 94ca140 commit b9bd960Copy full SHA for b9bd960
timm/models/layers/helpers.py
@@ -3,13 +3,13 @@
3
Hacked together by / Copyright 2020 Ross Wightman
4
"""
5
from itertools import repeat
6
-from torch._six import container_abcs
+import collections.abc
7
8
9
# From PyTorch internals
10
def _ntuple(n):
11
def parse(x):
12
- if isinstance(x, container_abcs.Iterable):
+ if isinstance(x, collections.abc.Iterable):
13
return x
14
return tuple(repeat(x, n))
15
return parse
0 commit comments