zoo/mobilenet/mobilenet_v2_c.py
def group(self, x, **metaparameters):
        """ Construct an Inverted Residual Group
            x         : input to the group
            strides   : whether first inverted residual block is strided.
            n_blocks  : number of blocks in the group
        """   
        n_blocks  = metaparameters['n_blocks']
        strides   = metaparameters['strides']
        del metaparameters['strides']

        # In first block, the inverted residual block maybe strided - feature map size reduction
        x = self.inverted_block(x, strides=strides, **metaparameters)
    
        # Remaining blocks
        for _ in range(n_blocks - 1):
            x = self.inverted_block(x, strides=(1, 1), **metaparameters)
        return x
 Construct an Inverted Residual Group
            x         : input to the group
            strides   : whether first inverted residual block is strided.
            n_blocks  : number of blocks in the group
        
Construct an Inverted Residual Group
x         : input to the group
strides   : whether first inverted residual block is strided.
n_blocks  : number of blocks in the group
Construct an Inverted Residual Group x : input to the group strides : whether first inverted residual block is strided . n_blocks : number of blocks in the group
def group(self, x, **metaparameters):
        n_blocks  = metaparameters['n_blocks']
        strides   = metaparameters['strides']
        del metaparameters['strides']
        x = self.inverted_block(x, strides=strides, **metaparameters)
        for _ in range(n_blocks - 1):
            x = self.inverted_block(x, strides=(1, 1), **metaparameters)
        return x
def group ( self , x , ** metaparameters ) : n_blocks = metaparameters [ 'n_blocks' ] strides = metaparameters [ 'strides' ] del metaparameters [ 'strides' ] x = self . inverted_block ( x , strides = strides , ** metaparameters ) for _ in range ( n_blocks - 1 ) : x = self . inverted_block ( x , strides = ( 1 , 1 ) , ** metaparameters ) return x
Construct an Inverted Residual Group
x         : input to the group
strides   : whether first inverted residual block is strided.
Construct an Inverted Residual Group x : input to the group strides : whether first inverted residual block is strided .
""" Construct an Inverted Residual Group
            x         : input to the group
            strides   : whether first inverted residual block is strided.
            n_blocks  : number of blocks in the group
        """ # In first block, the inverted residual block maybe strided - feature map size reduction # Remaining blocks
self
x