parameters: (func)
return_statement: return inner_decorator
docstring: Decorator to convert graph_def transforming to graph_transforming.
docstring_summary: Decorator to convert graph_def transforming to graph_transforming.
docstring_tokens: Decorator to convert graph_def transforming to graph_transforming .
function: def GenerateGraphTransform(func):
    """Decorator to convert graph_def transforming to graph_transforming."""
    def inner_decorator(*args, **kwargs):
      input_graph_def = get_default_graph().as_graph_def()
  
      # Do GraphDef Transforming
      output_graph_def = func(input_graph_def, kwargs['config'])
  
      # Apply modifications to default graph
      MergeNodesFromGraphDef(output_graph_def)
      return
  
    return inner_decorator
function_tokens: def GenerateGraphTransform ( func ) : def inner_decorator ( * args , * * kwargs ) : input_graph_def = get_default_graph ( ) . as_graph_def ( ) # Do GraphDef Transforming output_graph_def = func ( input_graph_def , kwargs [ 'config' ] ) # Apply modifications to default graph MergeNodesFromGraphDef ( output_graph_def ) return return inner_decorator