tf.raw_ops.SnapshotDataset

Creates a dataset that will write to / read from a snapshot.

This dataset attempts to determine whether a valid snapshot exists at the snapshot_path, and reads from the snapshot in lieu of using input_dataset. If not, it will run the preprocessing pipeline as usual, and write out a snapshot of the data processed for future use.

input_datasetA Tensor of type variant. A variant tensor representing the input dataset.
pathA Tensor of type string. The path we should write snapshots to / read snapshots from.
output_typesA list of tf.DTypes that has length >= 1.
output_shapesA list of shapes (each a tf.TensorShape or list of ints) that has length >= 1.
compressionAn optional string. Defaults to "".
reader_path_prefixAn optional string. Defaults to "".
writer_path_prefixAn optional string. Defaults to "".
shard_size_bytesAn optional int. Defaults to 10737418240.
pending_snapshot_expiry_secondsAn optional int. Defaults to 86400.
num_reader_threadsAn optional int. Defaults to 1.
reader_buffer_sizeAn optional int. Defaults to 1.
num_writer_threadsAn optional int. Defaults to 1.
writer_buffer_sizeAn optional int. Defaults to 1.
shuffle_on_readAn optional bool. Defaults to False.
seedAn optional int. Defaults to 0.
seed2An optional int. Defaults to 0.
modeAn optional string. Defaults to "auto".
snapshot_nameAn optional string. Defaults to "".
nameA name for the operation (optional).

A Tensor of type variant.