MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Iterator

Function Iterator

tensorflow/go/op/wrappers.go:8283–8295  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

8281// Returns A handle to the iterator that can be passed to a "MakeIterator"
8282// or "IteratorGetNext" op.
8283func 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//

Callers 1

TestDatasetFunction · 0.70

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

TestDatasetFunction · 0.56