(name)
return wrap
Set the tensorflow scope for the function.

    Parameters
    ----------
    name : string, optional

    Returns
    -------
    The tensorflow function with scope name.
Set the tensorflow scope for the function.
Set the tensorflow scope for the function .
def with_scope(name):
    """Set the tensorflow scope for the function.

    Parameters
    ----------
    name : string, optional

    Returns
    -------
    The tensorflow function with scope name.
    """
    def wrap(function):
        @wraps(function)
        def wrapped_function(*args, **kwargs):
            with tf.name_scope(name):
                return function(*args, **kwargs)
        return wrapped_function
    return wrap
def with_scope ( name ) : def wrap ( function ) : @ wraps ( function ) def wrapped_function ( * args , * * kwargs ) : with tf . name_scope ( name ) : return function ( * args , * * kwargs ) return wrapped_function return wrap