def __init__(self): self.conv0 = PFC.Conv2d(1, 16, (3, 3), pad=(1, 1), with_bias=False) self.conv1 = PFC.Conv2d(16, 32, (3, 3), pad=(1, 1), with_bias=False) self.bn0 = PFC.BatchNorm2d(16) self.bn1 = PFC.BatchNorm2d(32) self.act = F.relu self.pool = F.max_pooling
def __init__(self): self.conv0 = PFC.Conv2d(32, 64, (3, 3), pad=(1, 1), with_bias=False) self.bn0 = PFC.BatchNorm2d(64) self.affine = PFC.Affine(64, 10) self.act = F.relu self.pool = F.average_pooling