From e41e6ced6f6a22b7befe52de0d694df268c2298b Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sat, 10 Dec 2022 00:48:24 -0800 Subject: [PATCH] Update davit.py --- timm/models/davit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timm/models/davit.py b/timm/models/davit.py index 56e6e502..caa91707 100644 --- a/timm/models/davit.py +++ b/timm/models/davit.py @@ -39,7 +39,7 @@ class SequentialWithSize(nn.Sequential): super(SequentialWithSize, self).__init__(*args, **kwargs) def forward(self, x: Tensor, size: Tuple[int, int]): - for module in iter(self): + for module in self.__iter__(): x, size = module(x, size) ''' output = module(x, size)