parameters: (self, tensor, dtype=None)
docstring: Add a new input to this operation.
  
      Args:
        tensor: the Tensor to add as an input.
        dtype: tf.DType: type of the input; defaults to
          the tensor's dtype.
  
      Raises:
        TypeError: if tensor is not a Tensor,
          or if input tensor type is not convertible to dtype.
        ValueError: if the Tensor is from a different graph.
docstring_summary: Add a new input to this operation.
docstring_tokens: Add a new input to this operation .
function: def _add_input(self, tensor, dtype=None):
      """Add a new input to this operation.
  
      Args:
        tensor: the Tensor to add as an input.
        dtype: tf.DType: type of the input; defaults to
          the tensor's dtype.
  
      Raises:
        TypeError: if tensor is not a Tensor,
          or if input tensor type is not convertible to dtype.
        ValueError: if the Tensor is from a different graph.
      """
      if not isinstance(tensor, Tensor):
        raise TypeError("tensor must be a Tensor: %s" % tensor)
      _assert_same_graph(self, tensor)
      if dtype is None:
        dtype = tensor.dtype
      else:
        dtype = dtypes.as_dtype(dtype)
        if not dtype.is_compatible_with(tensor.dtype):
          raise TypeError(
              "Cannot convert a tensor of type %s to an input of type %s"
              % (tensor.dtype.name, dtype.name))
      self._inputs.append(tensor)
      self._input_types.append(dtype)
      tensor._add_consumer(self)  # pylint: disable=protected-access
      self._recompute_node_def()
function_tokens: def _add_input ( self , tensor , dtype = None ) : if not isinstance ( tensor , Tensor ) : raise TypeError ( "tensor must be a Tensor: %s" % tensor ) _assert_same_graph ( self , tensor ) if dtype is None : dtype = tensor . dtype else : dtype = dtypes . as_dtype ( dtype ) if not dtype . is_compatible_with ( tensor . dtype ) : raise TypeError ( "Cannot convert a tensor of type %s to an input of type %s" % ( tensor . dtype . name , dtype . name ) ) self . _inputs . append ( tensor ) self . _input_types . append ( dtype ) tensor . _add_consumer ( self ) # pylint: disable=protected-access self . _recompute_node_def ( )