Creates a dataset that will write to / read from a snapshot.
tf.raw_ops.SnapshotDatasetV2(
    input_dataset, path, reader_func_other_args, shard_func_other_args,
    output_types, output_shapes, reader_func, shard_func, compression='', name=None
)
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.
| Args | |
|---|---|
| input_dataset | A Tensorof typevariant.
A variant tensor representing the input dataset. | 
| path | A Tensorof typestring.
The path we should write snapshots to / read snapshots from. | 
| reader_func_other_args | A list of Tensorobjects. | 
| shard_func_other_args | A list of Tensorobjects. | 
| output_types | A list of tf.DTypesthat has length>= 1. | 
| output_shapes | A list of shapes (each a tf.TensorShapeor list ofints) that has length>= 1. | 
| reader_func | A function decorated with @Defun. Optional. A function to control how to read data from snapshot shards. | 
| shard_func | A function decorated with @Defun. Optional. A function to control how to shard data when writing a snapshot. | 
| compression | An optional string. Defaults to"".
The type of compression to be applied to the saved snapshot files. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| A Tensorof typevariant. |