parameters: (x, include_shapes=False, finished=None)
return_statement: return result
docstring: A postfix expression summarizing the TF graph.
  
    This is intended to be used as part of test cases to
    check for gross differences in the structure of the graph.
    The resulting string is not invertible or unabiguous
    and cannot be used to reconstruct the graph accurately.
  
    Args:
        x: a tf.Tensor or tf.Operation
        include_shapes: include shapes in the output string
        finished: a set of ops that have already been output
  
    Returns:
        A string representing the structure as a string of
        postfix operations.
docstring_summary: A postfix expression summarizing the TF graph.
docstring_tokens: A postfix expression summarizing the TF graph .
function: def tf_structure(x, include_shapes=False, finished=None):
    """A postfix expression summarizing the TF graph.
  
    This is intended to be used as part of test cases to
    check for gross differences in the structure of the graph.
    The resulting string is not invertible or unabiguous
    and cannot be used to reconstruct the graph accurately.
  
    Args:
        x: a tf.Tensor or tf.Operation
        include_shapes: include shapes in the output string
        finished: a set of ops that have already been output
  
    Returns:
        A string representing the structure as a string of
        postfix operations.
    """
    if finished is None:
      finished = set()
    if isinstance(x, ops.Tensor):
      shape = x.get_shape().as_list()
      x = x.op
    else:
      shape = []
    if x in finished:
      return " <>"
    finished |= {x}
    result = ""
    if not _truncate_structure(x):
      for y in x.inputs:
        result += tf_structure(y, include_shapes, finished)
    if include_shapes:
      result += " %s" % (shape,)
    if x.type != "Identity":
      name = SHORT_NAMES.get(x.type, x.type.lower())
      result += " " + name
    return result
function_tokens: def tf_structure ( x , include_shapes = False , finished = None ) : if finished is None : finished = set ( ) if isinstance ( x , ops . Tensor ) : shape = x . get_shape ( ) . as_list ( ) x = x . op else : shape = [ ] if x in finished : return " <>" finished |= { x } result = "" if not _truncate_structure ( x ) : for y in x . inputs : result += tf_structure ( y , include_shapes , finished ) if include_shapes : result += " %s" % ( shape , ) if x . type != "Identity" : name = SHORT_NAMES . get ( x . type , x . type . lower ( ) ) result += " " + name return result