(function)
return wrapped_function
Use the parent scope for tensorflow.
Use the parent scope for tensorflow.
Use the parent scope for tensorflow .
def use_parent_scope(function):
    """Use the parent scope for tensorflow."""
    @wraps(function)
    def wrapped_function(self, *args, **kwargs):
        with tf.variable_scope(self.scope_name):
            return function(self, *args, **kwargs)
    return wrapped_function
def use_parent_scope ( function ) : @ wraps ( function ) def wrapped_function ( self , * args , * * kwargs ) : with tf . variable_scope ( self . scope_name ) : return function ( self , * args , * * kwargs ) return wrapped_function