Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 44928197f6
commit 3a2dc4fbd8

@ -35,7 +35,7 @@ __all__ = ['DaViT']
class MySequential(nn.Sequential): class MySequential(nn.Sequential):
def forward(self, inputs : Tensor, size : Tuple[int, int]]): def forward(self, inputs : Tensor, size : Tuple[int, int]):
for module in self._modules.values(): for module in self._modules.values():
inputs = module(inputs, size) inputs = module(inputs, size)
return inputs return inputs

Loading…
Cancel
Save