parameters: (inputs, name=None)
return_statement: return gen_math_ops._add_n(inputs, name=name)
docstring: Adds all input tensors element-wise.
  
    Args:
      inputs: A list of `Tensor` objects, each with same shape and type.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` of same shape and type as the elements of `inputs`.
  
    Raises:
      ValueError: If `inputs` don't all have same shape and dtype or the shape
      cannot be inferred.
docstring_summary: Adds all input tensors element-wise.
docstring_tokens: Adds all input tensors element - wise .
function: def add_n(inputs, name=None):
    """Adds all input tensors element-wise.
  
    Args:
      inputs: A list of `Tensor` objects, each with same shape and type.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` of same shape and type as the elements of `inputs`.
  
    Raises:
      ValueError: If `inputs` don't all have same shape and dtype or the shape
      cannot be inferred.
    """
    if not inputs or not isinstance(inputs, (list, tuple)):
      raise ValueError("inputs must be a list of at least one Tensor with the "
                       "same dtype and shape")
    inputs = ops.convert_n_to_tensor_or_indexed_slices(inputs)
    if not all(isinstance(x, ops.Tensor) for x in inputs):
      raise ValueError("inputs must be a list of at least one Tensor with the "
                       "same dtype and shape")
  
    if len(inputs) == 1:
      if name:
        return array_ops.identity(inputs[0], name=name)
      return inputs[0]
    return gen_math_ops._add_n(inputs, name=name)
function_tokens: def add_n ( inputs , name = None ) : if not inputs or not isinstance ( inputs , ( list , tuple ) ) : raise ValueError ( "inputs must be a list of at least one Tensor with the " "same dtype and shape" ) inputs = ops . convert_n_to_tensor_or_indexed_slices ( inputs ) if not all ( isinstance ( x , ops . Tensor ) for x in inputs ) : raise ValueError ( "inputs must be a list of at least one Tensor with the " "same dtype and shape" ) if len ( inputs ) == 1 : if name : return array_ops . identity ( inputs [ 0 ] , name = name ) return inputs [ 0 ] return gen_math_ops . _add_n ( inputs , name = name )