Update davit.py

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

@ -38,9 +38,9 @@ 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: for module in self:
inputs : Tensor output = module(inputs, size)
size : Tuple[int, int] inputs : Tensor = output[0]
(inputs, size) = module(inputs, size) size : Tuple[int, int] = output[1]
return inputs return inputs
class ConvPosEnc(nn.Module): class ConvPosEnc(nn.Module):

Loading…
Cancel
Save