deepr.readers.TFRecordReader

class deepr.readers.TFRecordReader(path, num_parallel_reads=8, num_parallel_calls=8, shuffle=True, recursive=True)[source]

Class for TFRecord Reader of tf.train.Example.

num_parallel_calls

Description

Type:

TYPE

num_parallel_reads

Number of parallel reads

Type:

int

path

List of filenames or path to directory

Type:

List[Union[str, Path]]

shuffle

Shuffle files if True before reading.

Type:

bool

__init__(path, num_parallel_reads=8, num_parallel_calls=8, shuffle=True, recursive=True)[source]

Methods

__init__(path[, num_parallel_reads, ...])

as_dataset()

Build a tf.data.Dataset

Attributes

compression_type

filenames

Get filenames in path.