Update davit.py

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

@ -39,7 +39,7 @@ class SequentialWithSize(nn.Sequential):
super(SequentialWithSize, self).__init__(*args, **kwargs) super(SequentialWithSize, self).__init__(*args, **kwargs)
def forward(self, x: Tensor, size: Tuple[int, int]): def forward(self, x: Tensor, size: Tuple[int, int]):
for module in self: for module in iter(self):
x, size = module(x, size) x, size = module(x, size)
''' '''
output = module(x, size) output = module(x, size)

Loading…
Cancel
Save