Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 01bcbc94f7
commit 9d9959919b

@ -37,7 +37,9 @@ __all__ = ['DaViT']
class SequentialWithSize(nn.Sequential):
def forward(self, x : Tensor, size: Tuple[int, int]):
for module in self:
x, size = module(x, size)
output = module(inputs, size)
inputs : Tensor = output[0]
size : Tuple[int, int] = output[1]
return x, size

Loading…
Cancel
Save