class_docstr: Base class for classes representing a dataset for the benchmark.
class_docstr_tok: ["Base","class","for","classes","representing","a","dataset","for","the","benchmark","."]
docstr: Read the raw dataset of tf.train.Examples.
  
  Args:
    deserialize: If False, return the raw serialized bytes. If True, return
      the tf.train.Example parsed from the serialized bytes.
    limit: If set, yields no more than the given number of examples (might be
      less if the dataset has less examples than the limit).
  
  Yields:
    Serialized/unserialized (depending on deserialize) tf.train.Examples.
docstr_tok: ["Read","the","raw","dataset","of","tf.train.Examples",".","Args",":","deserialize",":","If","False",",","return","the","raw","serialized","bytes",".","If","True",",","return","the","tf.train.Example","parsed","from","the","serialized","bytes",".","limit",":","If","set",",","yields","no","more","than","the","given","number","of","examples","(","might","be","less","if","the","dataset","has","less","examples","than","the","limit",")",".","Yields",":","Serialized\/unserialized","(","depending","on","deserialize",")","tf.train.Examples","."]
code: def read_raw_dataset(self, deserialize=True, limit=None):
      """Read the raw dataset of tf.train.Examples.
  
      Args:
        deserialize: If False, return the raw serialized bytes. If True, return
          the tf.train.Example parsed from the serialized bytes.
        limit: If set, yields no more than the given number of examples (might be
          less if the dataset has less examples than the limit).
  
      Yields:
        Serialized/unserialized (depending on deserialize) tf.train.Examples.
      """
      for count, example_bytes in enumerate(
          tf.compat.v1.io.tf_record_iterator(
              self.dataset_path(),
              tf.compat.v1.io.TFRecordOptions(
                  tf.compat.v1.io.TFRecordCompressionType.GZIP
              ),
          )
      ):
          if limit and count >= limit:
              break
          if not deserialize:
              yield example_bytes
          else:
              yield tf.train.Example().FromString(example_bytes)
  
file_path: tfx/tfx/benchmarks/benchmark_dataset.py
imports: import os
  import tensorflow
label_desc: Use image node_id 9 for calling the BenchmarkDataset obj's underlying member method code with example usage: obj.read_raw_dataset(deserialize, limit) without return types