zoo/senet/se_resnext_c.py
def group(self, x, strides=(2, 2), **metaparameters):
        """ Construct a Squeeze-Excite Group
            x          : input to the group
            strides    : whether projection block is strided
            n_blocks   : number of blocks in the group
        """
        n_blocks = metaparameters['n_blocks']

        # First block is a linear projection block
        x = self.projection_block(x, strides=strides, **metaparameters)

        # Remaining blocks are identity links
        for _ in range(n_blocks-1):
            x = self.identity_block(x, **metaparameters) 
        return x
 Construct a Squeeze-Excite Group
            x          : input to the group
            strides    : whether projection block is strided
            n_blocks   : number of blocks in the group
        
Construct a Squeeze-Excite Group
x          : input to the group
strides    : whether projection block is strided
n_blocks   : number of blocks in the group
Construct a Squeeze - Excite Group x : input to the group strides : whether projection block is strided n_blocks : number of blocks in the group
def group(self, x, strides=(2, 2), **metaparameters):
        n_blocks = metaparameters['n_blocks']
        x = self.projection_block(x, strides=strides, **metaparameters)
        for _ in range(n_blocks-1):
            x = self.identity_block(x, **metaparameters) 
        return x
def group ( self , x , strides = ( 2 , 2 ) , ** metaparameters ) : n_blocks = metaparameters [ 'n_blocks' ] x = self . projection_block ( x , strides = strides , ** metaparameters ) for _ in range ( n_blocks - 1 ) : x = self . identity_block ( x , ** metaparameters ) return x
Construct a Squeeze-Excite Group
x          : input to the group
strides    : whether projection block is strided
n_blocks   : number of blocks in the group
Construct a Squeeze - Excite Group x : input to the group strides : whether projection block is strided n_blocks : number of blocks in the group
""" Construct a Squeeze-Excite Group
            x          : input to the group
            strides    : whether projection block is strided
            n_blocks   : number of blocks in the group
        """ # First block is a linear projection block # Remaining blocks are identity links
self
x
strides