From 4307607783b01fd509c487ded62c04c324f551aa Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sat, 10 Dec 2022 00:43:25 -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 4804b0fc..fbe68b06 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._modules.values(): + for module in self: x, size = module(x, size) ''' output = module(x, size)