Makes its input available to the next iteration. Arguments: data: The tensor to be made available to the next iteration. Returns The same tensor as `data`.
(scope *Scope, data tf.Output)
| 8122 | // |
| 8123 | // Returns The same tensor as `data`. |
| 8124 | func NextIteration(scope *Scope, data tf.Output) (output tf.Output) { |
| 8125 | if scope.Err() != nil { |
| 8126 | return |
| 8127 | } |
| 8128 | opspec := tf.OpSpec{ |
| 8129 | Type: "NextIteration", |
| 8130 | Input: []tf.Input{ |
| 8131 | data, |
| 8132 | }, |
| 8133 | } |
| 8134 | op := scope.AddOperation(opspec) |
| 8135 | return op.Output(0) |
| 8136 | } |
| 8137 | |
| 8138 | // Makes a new iterator from the given `dataset` and stores it in `iterator`. |
| 8139 | // |