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

Function MakeIterator

tensorflow/go/op/wrappers.go:8144–8155  ·  view source on GitHub ↗

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 iterator in `iterator` to the first element of `dataset`. Returns the created operation.

(scope *Scope, dataset tf.Output, iterator tf.Output)

Source from the content-addressed store, hash-verified

8142//
8143// Returns the created operation.
8144func MakeIterator(scope *Scope, dataset tf.Output, iterator tf.Output) (o *tf.Operation) {
8145 if scope.Err() != nil {
8146 return
8147 }
8148 opspec := tf.OpSpec{
8149 Type: "MakeIterator",
8150 Input: []tf.Input{
8151 dataset, iterator,
8152 },
8153 }
8154 return scope.AddOperation(opspec)
8155}
8156
8157// A container for an iterator resource.
8158//

Callers 2

MakeIteratorMethod · 0.85
TestDatasetFunction · 0.85

Calls 2

ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by 1

TestDatasetFunction · 0.68