parameters: (tensor)
return_statement: return aliases
docstring: Get a list with the aliases of the input tensor.
  
    If the tensor does not have any alias, it would default to its its op.name or
    its name.
  
    Args:
      tensor: A `Tensor`.
  
    Returns:
      A list of strings with the aliases of the tensor.
docstring_summary: Get a list with the aliases of the input tensor.
docstring_tokens: Get a list with the aliases of the input tensor .
function: def get_tensor_aliases(tensor):
    """Get a list with the aliases of the input tensor.
  
    If the tensor does not have any alias, it would default to its its op.name or
    its name.
  
    Args:
      tensor: A `Tensor`.
  
    Returns:
      A list of strings with the aliases of the tensor.
    """
    if hasattr(tensor, 'aliases'):
      aliases = tensor.aliases
    else:
      if tensor.name[-2:] == ':0':
        # Use op.name for tensor ending in :0
        aliases = [tensor.op.name]
      else:
        aliases = [tensor.name]
    return aliases
function_tokens: def get_tensor_aliases ( tensor ) : if hasattr ( tensor , 'aliases' ) : aliases = tensor . aliases else : if tensor . name [ - 2 : ] == ':0' : # Use op.name for tensor ending in :0 aliases = [ tensor . op . name ] else : aliases = [ tensor . name ] return aliases