We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7430a85 commit 8ad4bdfCopy full SHA for 8ad4bdf
timm/models/layers/helpers.py
@@ -9,7 +9,7 @@
9
# From PyTorch internals
10
def _ntuple(n):
11
def parse(x):
12
- if isinstance(x, collections.abc.Iterable):
+ if isinstance(x, collections.abc.Iterable) and not isinstance(x, str):
13
return x
14
return tuple(repeat(x, n))
15
return parse
0 commit comments