def feed_dict_iterator(self, dset):
    """Iterator over feed_dict dictionaries.

    Args:
      dset: a tf.data.Dataset

    Yields:
      for each value produced by the datasets read's head, a dictionary mapping
      names of all placeholders in feature_ph_dict or labels_ph to appropriate
      alues.
    """
    read_head = self.as_read_head(dset)
    try:
      while True:
        (feature_val_dict, labels_val) = self.session.run(read_head)
        feed_dict = {self.labels_ph.name: labels_val}
        for feature_name, feature_val in feature_val_dict.items():
          feature_ph = self.feature_ph_dict[feature_name]
          feed_dict[feature_ph.name] = feature_val
        yield feed_dict
    except tf.errors.OutOfRangeError:
      pass
Iterator over feed_dict dictionaries.

    Args:
      dset: a tf.data.Dataset

    Yields:
      for each value produced by the datasets read's head, a dictionary mapping
      names of all placeholders in feature_ph_dict or labels_ph to appropriate
      alues.
    
language/nql/nql/util.py