Update davit.py

pull/1630/head
Fredo Guan 2 years ago
parent 4303034189
commit dee601ed7f

@ -38,9 +38,9 @@ class MySequential(nn.Sequential):
def forward(self, inputs : Tensor, size : Tuple[int, int]):
for module in self:
inputs : Tensor
size : Tuple[int, int]
(inputs, size) = module(inputs, size)
output = module(inputs, size)
inputs : Tensor = output[0]
size : Tuple[int, int] = output[1]
return inputs
class ConvPosEnc(nn.Module):

Loading…
Cancel
Save