Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent c73e362aee
commit e41e6ced6f

@ -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)

Loading…
Cancel
Save