zoo/resnet/resnet_v2_c.py
def group(self, x, strides=(2, 2), **metaparameters):
        """ Construct a Residual Group
            x         : input into the group
            strides   : whether the projection block is a strided convolution
            n_blocks  : number of residual blocks with identity link
        """
        n_blocks  = metaparameters['n_blocks']

        # Double the size of filters to fit the first Residual Block
        x = self.projection_block(x, strides=strides, **metaparameters)

        # Identity residual blocks
        for _ in range(n_blocks):
            x = self.identity_block(x, **metaparameters)
        return x
 Construct a Residual Group
            x         : input into the group
            strides   : whether the projection block is a strided convolution
            n_blocks  : number of residual blocks with identity link
        
Construct a Residual Group
x         : input into the group
strides   : whether the projection block is a strided convolution
n_blocks  : number of residual blocks with identity link
Construct a Residual Group x : input into the group strides : whether the projection block is a strided convolution n_blocks : number of residual blocks with identity link
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):
            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 ) : x = self . identity_block ( x , ** metaparameters ) return x
Construct a Residual Group
x         : input into the group
strides   : whether the projection block is a strided convolution
n_blocks  : number of residual blocks with identity link
Construct a Residual Group x : input into the group strides : whether the projection block is a strided convolution n_blocks : number of residual blocks with identity link
""" Construct a Residual Group
            x         : input into the group
            strides   : whether the projection block is a strided convolution
            n_blocks  : number of residual blocks with identity link
        """ # Double the size of filters to fit the first Residual Block # Identity residual blocks
self
x
strides