Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 9d9959919b
commit 721487c304

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

Loading…
Cancel
Save