Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent c69307d587
commit 4307607783

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

Loading…
Cancel
Save