parameters: (data, name=None)
docstring: Return a tensor with the same shape and contents as the input tensor.
  
    Args:
      data: A Tensor.
      name: A name for this operation (optional).
  
    Returns:
      A Tensor with the same type and value as the input Tensor.
docstring_summary: Return a tensor with the same shape and contents as the input tensor.
docstring_tokens: Return a tensor with the same shape and contents as the input tensor .
function: def _Identity(data, name=None):
    """Return a tensor with the same shape and contents as the input tensor.
  
    Args:
      data: A Tensor.
      name: A name for this operation (optional).
  
    Returns:
      A Tensor with the same type and value as the input Tensor.
    """
    data = ops.convert_to_tensor_or_indexed_slices(data, as_ref=True)
    if isinstance(data, ops.Tensor):
      if data.dtype.is_ref_dtype:
        return gen_array_ops._ref_identity(data, name=name)
      else:
        return array_ops.identity(data, name=name)
    else:
      if not isinstance(data, (ops.IndexedSlices, ops.SparseTensor)):
        raise TypeError("Type %s not supported" % type(data))
      values = _Identity(data.values, name=name)
      indices = array_ops.identity(data.indices, name="indices")
      if isinstance(data, ops.IndexedSlices):
        dense_shape = data.dense_shape
        if dense_shape is not None:
          dense_shape = array_ops.identity(dense_shape, name="dense_shape")
        return ops.IndexedSlices(values, indices, dense_shape)
      else:
        dense_shape = array_ops.identity(data.shape, name="dense_shape")
        return ops.SparseTensor(indices, values, dense_shape)
function_tokens: def _Identity ( data , name = None ) : data = ops . convert_to_tensor_or_indexed_slices ( data , as_ref = True ) if isinstance ( data , ops . Tensor ) : if data . dtype . is_ref_dtype : return gen_array_ops . _ref_identity ( data , name = name ) else : return array_ops . identity ( data , name = name ) else : if not isinstance ( data , ( ops . IndexedSlices , ops . SparseTensor ) ) : raise TypeError ( "Type %s not supported" % type ( data ) ) values = _Identity ( data . values , name = name ) indices = array_ops . identity ( data . indices , name = "indices" ) if isinstance ( data , ops . IndexedSlices ) : dense_shape = data . dense_shape if dense_shape is not None : dense_shape = array_ops . identity ( dense_shape , name = "dense_shape" ) return ops . IndexedSlices ( values , indices , dense_shape ) else : dense_shape = array_ops . identity ( data . shape , name = "dense_shape" ) return ops . SparseTensor ( indices , values , dense_shape )