Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 166963099
This commit is contained in:
A. Unique TensorFlower 2017-08-30 01:14:56 -07:00 committed by TensorFlower Gardener
parent 9c0302760d
commit d78a24d407

View File

@ -5614,6 +5614,40 @@ func IteratorGetNext(scope *Scope, iterator tf.Output, output_types []tf.DataTyp
return components return components
} }
// Restores the state of the `iterator` from the checkpoint saved at `path` using "SaveIterator".
//
// Returns the created operation.
func RestoreIterator(scope *Scope, iterator tf.Output, path tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "RestoreIterator",
Input: []tf.Input{
iterator, path,
},
}
return scope.AddOperation(opspec)
}
// Saves the state of the `iterator` at `path`.
//
// This state can be restored using "RestoreIterator".
//
// Returns the created operation.
func SaveIterator(scope *Scope, iterator tf.Output, path tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "SaveIterator",
Input: []tf.Input{
iterator, path,
},
}
return scope.AddOperation(opspec)
}
// Makes a new iterator from the given `dataset` and stores it in `iterator`. // Makes a new iterator from the given `dataset` and stores it in `iterator`.
// //
// This operation may be executed multiple times. Each execution will reset the // This operation may be executed multiple times. Each execution will reset the