(self, num_classes=1000)
Constructor
        Args:
            num_classes: number of classes
Constructor
        Args:
            num_classes: number of classes
Constructor Args : num_classes : number of classes
def __init__(self, num_classes=1000):
        """ Constructor
        Args:
            num_classes: number of classes
        """
        super(Xception, self).__init__()
        self.num_classes = num_classes

        self.conv1 = nn.Conv2d(3, 32, 3,2, 0, bias=False)
        self.bn1 = nn.BatchNorm2d(32)
        self.relu1 = nn.ReLU(inplace=True)

        self.conv2 = nn.Conv2d(32,64,3,bias=False)
        self.bn2 = nn.BatchNorm2d(64)
        self.relu2 = nn.ReLU(inplace=True)
        #do relu here

        self.block1=Block(64,128,2,2,start_with_relu=False,grow_first=True)
        self.block2=Block(128,256,2,2,start_with_relu=True,grow_first=True)
        self.block3=Block(256,728,2,2,start_with_relu=True,grow_first=True)

        self.block4=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block5=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block6=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block7=Block(728,728,3,1,start_with_relu=True,grow_first=True)

        self.block8=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block9=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block10=Block(728,728,3,1,start_with_relu=True,grow_first=True)
        self.block11=Block(728,728,3,1,start_with_relu=True,grow_first=True)

        self.block12=Block(728,1024,2,2,start_with_relu=True,grow_first=False)

        self.conv3 = SeparableConv2d(1024,1536,3,1,1)
        self.bn3 = nn.BatchNorm2d(1536)
        self.relu3 = nn.ReLU(inplace=True)

        #do relu here
        self.conv4 = SeparableConv2d(1536,2048,3,1,1)
        self.bn4 = nn.BatchNorm2d(2048)

        self.fc = nn.Linear(2048, num_classes)
def __init__ ( self , num_classes = 1000 ) : super ( Xception , self ) . __init__ ( ) self . num_classes = num_classes self . conv1 = nn . Conv2d ( 3 , 32 , 3 , 2 , 0 , bias = False ) self . bn1 = nn . BatchNorm2d ( 32 ) self . relu1 = nn . ReLU ( inplace = True ) self . conv2 = nn . Conv2d ( 32 , 64 , 3 , bias = False ) self . bn2 = nn . BatchNorm2d ( 64 ) self . relu2 = nn . ReLU ( inplace = True ) #do relu here self . block1 = Block ( 64 , 128 , 2 , 2 , start_with_relu = False , grow_first = True ) self . block2 = Block ( 128 , 256 , 2 , 2 , start_with_relu = True , grow_first = True ) self . block3 = Block ( 256 , 728 , 2 , 2 , start_with_relu = True , grow_first = True ) self . block4 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block5 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block6 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block7 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block8 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block9 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block10 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block11 = Block ( 728 , 728 , 3 , 1 , start_with_relu = True , grow_first = True ) self . block12 = Block ( 728 , 1024 , 2 , 2 , start_with_relu = True , grow_first = False ) self . conv3 = SeparableConv2d ( 1024 , 1536 , 3 , 1 , 1 ) self . bn3 = nn . BatchNorm2d ( 1536 ) self . relu3 = nn . ReLU ( inplace = True ) #do relu here self . conv4 = SeparableConv2d ( 1536 , 2048 , 3 , 1 , 1 ) self . bn4 = nn . BatchNorm2d ( 2048 ) self . fc = nn . Linear ( 2048 , num_classes )