Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 166963099
This commit is contained in:
parent
9c0302760d
commit
d78a24d407
@ -5614,6 +5614,40 @@ func IteratorGetNext(scope *Scope, iterator tf.Output, output_types []tf.DataTyp
|
||||
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`.
|
||||
//
|
||||
// This operation may be executed multiple times. Each execution will reset the
|
||||
|
Loading…
Reference in New Issue
Block a user