Esempio n. 1
0
 def __init__(self):
     super(QuantLeNetWbWtAb, self).__init__()
     self.conv1 = quant_conv_wbwtab(1, 10, kernel_size=5)
     self.conv2 = quant_conv_wbwtab(10, 20, kernel_size=5)
     self.fc1 = nn.Linear(320, 50)
     self.fc2 = nn.Linear(50, 10)
     self.max_pool = nn.MaxPool2d(kernel_size=2)
     self.relu = quant_relu_wbwtab()
Esempio n. 2
0
 def __init__(self):
     super(QuantLeNetWbWtAb, self).__init__()
     self.conv1 = quant_conv_wbwtab(1, 10, kernel_size=5)
     self.conv2 = quant_conv_wbwtab(10, 20, kernel_size=5)
     self.fc1 = nn.Linear(320, 50)
     self.fc2 = nn.Linear(50, 10)