Exemplo n.º 1
0
 def __init__(self, reduction):
     super().__init__()
     self.conv1 = nn.Conv2d(3, 3, kernel_size=1)
     self.conv2 = nn.Conv2d(3, 3, kernel_size=1)
     self.input = nn.InputChoice(2, n_chosen=2, reduction=reduction)
Exemplo n.º 2
0
 def __init__(self):
     super().__init__()
     self.conv1 = nn.Conv2d(3, 3, kernel_size=1)
     self.conv2 = nn.Conv2d(3, 5, kernel_size=1)
     self.input = nn.InputChoice(2)