A container for an iterator resource. Returns A handle to the iterator that can be passed to a "MakeIterator" or "IteratorGetNext" op.
(scope *Scope, shared_name string, container string, output_types []tf.DataType, output_shapes []tf.Shape)
| 8281 | // Returns A handle to the iterator that can be passed to a "MakeIterator" |
| 8282 | // or "IteratorGetNext" op. |
| 8283 | func Iterator(scope *Scope, shared_name string, container string, output_types []tf.DataType, output_shapes []tf.Shape) (handle tf.Output) { |
| 8284 | if scope.Err() != nil { |
| 8285 | return |
| 8286 | } |
| 8287 | attrs := map[string]interface{}{"shared_name": shared_name, "container": container, "output_types": output_types, "output_shapes": output_shapes} |
| 8288 | opspec := tf.OpSpec{ |
| 8289 | Type: "Iterator", |
| 8290 | |
| 8291 | Attrs: attrs, |
| 8292 | } |
| 8293 | op := scope.AddOperation(opspec) |
| 8294 | return op.Output(0) |
| 8295 | } |
| 8296 | |
| 8297 | // Creates a dataset that emits the records from one or more binary files. |
| 8298 | // |