parameters: ()
docstring: Creates a graph from saved GraphDef file and returns a saver.
docstring_summary: Creates a graph from saved GraphDef file and returns a saver.
docstring_tokens: Creates a graph from saved GraphDef file and returns a saver .
function: def create_graph():
    """Creates a graph from saved GraphDef file and returns a saver."""
    # Creates graph from saved graph_def.pb.
    with tf.gfile.FastGFile(os.path.join(
        FLAGS.model_dir, 'classify_image_graph_def.pb'), 'rb') as f:
      graph_def = tf.GraphDef()
      graph_def.ParseFromString(f.read())
      _ = tf.import_graph_def(graph_def, name='')
function_tokens: def create_graph ( ) : # Creates graph from saved graph_def.pb. with tf . gfile . FastGFile ( os . path . join ( FLAGS . model_dir , 'classify_image_graph_def.pb' ) , 'rb' ) as f : graph_def = tf . GraphDef ( ) graph_def . ParseFromString ( f . read ( ) ) _ = tf . import_graph_def ( graph_def , name = '' )