(nfm)
return module
strided
strided
strided
def module_s2(nfm):
    '''
    strided
    '''
    module = [BatchNorm(), Activation(Rectlin())]
    mainpath = [Conv(**conv_params(1, nfm, stride=2)),
                Conv(**conv_params(3, nfm)),
                Conv(**conv_params(1, nfm * 4, relu=False, batch_norm=False))]
    sidepath = [Conv(**conv_params(1, nfm * 4, stride=2, relu=False, batch_norm=False))]
    module.append(MergeSum([sidepath, mainpath]))
    return module
def module_s2 ( nfm ) : module = [ BatchNorm ( ) , Activation ( Rectlin ( ) ) ] mainpath = [ Conv ( * * conv_params ( 1 , nfm , stride = 2 ) ) , Conv ( * * conv_params ( 3 , nfm ) ) , Conv ( * * conv_params ( 1 , nfm * 4 , relu = False , batch_norm = False ) ) ] sidepath = [ Conv ( * * conv_params ( 1 , nfm * 4 , stride = 2 , relu = False , batch_norm = False ) ) ] module . append ( MergeSum ( [ sidepath , mainpath ] ) ) return module