|
|
@ -45,7 +45,7 @@ class SequentialWithSize(nn.Sequential):
|
|
|
|
|
|
|
|
|
|
|
|
class SequentialWithSize(nn.Sequential):
|
|
|
|
class SequentialWithSize(nn.Sequential):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super(SequentialWithSize, self).__init__(*args, **kwargs)
|
|
|
|
super(SequentialWithSize, nn.Sequential, self).__init__(*args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
def forward(self, x : Tensor, size: Tuple[int, int]):
|
|
|
|
def forward(self, x : Tensor, size: Tuple[int, int]):
|
|
|
|
for module in self._modules.values():
|
|
|
|
for module in self._modules.values():
|
|
|
|