From aba710b20251b4e01b02cee8d68f6f4d3206cd56 Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sat, 10 Dec 2022 04:44:46 -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 df203904..5b81d8c1 100644 --- a/timm/models/davit.py +++ b/timm/models/davit.py @@ -48,7 +48,7 @@ class SequentialWithSize(nn.Sequential): super().__init__(*args, **kwargs) def forward(self, x : Tensor, size: Tuple[int, int]): - for module in _modules.values(): + for module in self._modules.values(): x, size = module(x, size) return x, size