From c73e362aee5524dbf3ce75d6498a54f83eaf1bb2 Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sat, 10 Dec 2022 00:46:17 -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 fbe68b06..56e6e502 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 self: + for module in iter(self): x, size = module(x, size) ''' output = module(x, size)