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.
Nested Classes
class | SnapshotDataset.Options |
Optional attributes for
SnapshotDataset
|
Public Methods
Inherited Methods
Public Methods
public Output <Object> asOutput ()
Returns the symbolic handle of a tensor.
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
public static SnapshotDataset create ( Scope scope, Operand <?> inputDataset, Operand <String> path, List<Class<?>> outputTypes, List< Shape > outputShapes, Options... options)
Factory method to create a class wrapping a new SnapshotDataset operation.
Parameters
scope | current scope |
---|---|
inputDataset | A variant tensor representing the input dataset. |
path | The path we should write snapshots to / read snapshots from. |
options | carries optional attributes values |
Returns
- a new instance of SnapshotDataset
public static SnapshotDataset.Options pendingSnapshotExpirySeconds (Long pendingSnapshotExpirySeconds)