deepr.readers package
Submodules
deepr.readers.base module
Abstract base class for reader
- class deepr.readers.base.DatasetReader(dataset)[source]
Bases:
Reader
Dummy dataset reader initialized with a tf.data.Dataset
- class deepr.readers.base.Reader[source]
Bases:
ABC
Interface for readers, similar to tensorflow_datasets
deepr.readers.generator module
Reader Class for datasets using generator functions
- class deepr.readers.generator.GeneratorReader(generator_fn, output_types, output_shapes=None)[source]
Bases:
Reader
Reader Class for datasets using generator functions
- generator_fn
Generator function, yields features, labels
- Type:
Callable
- output_types
Generator outputs dtypes
- Type:
Nested structure of tf.DType
- output_shapes
Generator outputs shapes
- Type:
Nested structure of tf.TensorShape
deepr.readers.record module
Class for TFRecord Reader of tf.train.Example
- class deepr.readers.record.TFRecordReader(path, num_parallel_reads=8, num_parallel_calls=8, shuffle=True, recursive=True)[source]
Bases:
Reader
Class for TFRecord Reader of tf.train.Example.
- num_parallel_calls
Description
- Type:
TYPE
- property compression_type
- property filenames
Get filenames in path.