Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent a59189a48d
commit 54f74473d2

@ -35,9 +35,8 @@ from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
__all__ = ['DaViT']
class SequentialWithSize(nn.Sequential):
def __init__(*args, **kwargs):
super(MySequential, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def forward(self, x: Tensor, size: Tuple[int, int]):
for module in self._modules.values():

Loading…
Cancel
Save