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

        # first block uses linear projection to match the doubling of filters between groups
        x = self.projection_block(x, strides=strides, **metaparameters)

        # remaining blocks use identity link
        for _ in range(n_blocks-1):
            x = self.identity_block(x, **metaparameters)
        return x
 Construct the Squeeze-Excite Group
            x        : input to the group
            strides  : whether projection block is strided
            n_blocks : number of blocks
        
Construct the Squeeze-Excite Group
x        : input to the group
strides  : whether projection block is strided
n_blocks : number of blocks
Construct the Squeeze - Excite Group x : input to the group strides : whether projection block is strided n_blocks : number of blocks
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 the Squeeze-Excite Group
x        : input to the group
strides  : whether projection block is strided
n_blocks : number of blocks
Construct the Squeeze - Excite Group x : input to the group strides : whether projection block is strided n_blocks : number of blocks
""" Construct the Squeeze-Excite Group
            x        : input to the group
            strides  : whether projection block is strided
            n_blocks : number of blocks
        """ # first block uses linear projection to match the doubling of filters between groups # remaining blocks use identity link
self
x
strides