parameters: (self, tuple_types)
docstring: Sets the type of each element of the queue.
  
      tuple_types must be a list of length
      self.number_of_tuple_elements, and each element must be
      convertible to a dtype.
  
      Args:
        tuple_types: the types of each queue element.
  
      Raises:
        ValueError: if tuple_types is not of length
          self.number_of_tuple_elements.
        TypeError: if an element of tuple_types cannot be converted to a
          dtype.
docstring_summary: Sets the type of each element of the queue.
docstring_tokens: Sets the type of each element of the queue .
function: def set_tuple_types(self, tuple_types):
      """Sets the type of each element of the queue.
  
      tuple_types must be a list of length
      self.number_of_tuple_elements, and each element must be
      convertible to a dtype.
  
      Args:
        tuple_types: the types of each queue element.
  
      Raises:
        ValueError: if tuple_types is not of length
          self.number_of_tuple_elements.
        TypeError: if an element of tuple_types cannot be converted to a
          dtype.
      """
      if len(tuple_types) != self.number_of_tuple_elements:
        raise ValueError("tuple_types is %s, but must be a list of length %d" %
                         (str(tuple_types), self.number_of_tuple_elements))
      if self._frozen:
        for (frozen, updated) in zip(self._tuple_types, tuple_types):
          if frozen != updated:
            raise ValueError(
                "Trying to update InfeedQueue with frozen configuration with an "
                "incompatible type. Frozen types are %s, updated types are %s" % (
                    str(self._tuple_types), str(tuple_types)))
      else:
        try:
          self._tuple_types = [dtypes.as_dtype(t) for t in tuple_types]
        except (TypeError) as e:
          raise TypeError(
              "tuple_types is %s, but must be a list of elements each "
              "convertible to dtype: got error %s" % (str(tuple_types), str(e)))
function_tokens: def set_tuple_types ( self , tuple_types ) : if len ( tuple_types ) != self . number_of_tuple_elements : raise ValueError ( "tuple_types is %s, but must be a list of length %d" % ( str ( tuple_types ) , self . number_of_tuple_elements ) ) if self . _frozen : for ( frozen , updated ) in zip ( self . _tuple_types , tuple_types ) : if frozen != updated : raise ValueError ( "Trying to update InfeedQueue with frozen configuration with an " "incompatible type. Frozen types are %s, updated types are %s" % ( str ( self . _tuple_types ) , str ( tuple_types ) ) ) else : try : self . _tuple_types = [ dtypes . as_dtype ( t ) for t in tuple_types ] except ( TypeError ) as e : raise TypeError ( "tuple_types is %s, but must be a list of elements each " "convertible to dtype: got error %s" % ( str ( tuple_types ) , str ( e ) ) )