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

Function QueueDequeueManyV2

tensorflow/go/op/wrappers.go:7185–7211  ·  view source on GitHub ↗

Dequeues `n` tuples of one or more tensors from the given queue. If the queue is closed and there are fewer than `n` elements, then an OutOfRange error is returned. This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. All of the co

(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueManyV2Attr)

Source from the content-addressed store, hash-verified

7183//
7184// Returns One or more tensors that were dequeued as a tuple.
7185func QueueDequeueManyV2(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueManyV2Attr) (components []tf.Output) {
7186 if scope.Err() != nil {
7187 return
7188 }
7189 attrs := map[string]interface{}{"component_types": component_types}
7190 for _, a := range optional {
7191 a(attrs)
7192 }
7193 opspec := tf.OpSpec{
7194 Type: "QueueDequeueManyV2",
7195 Input: []tf.Input{
7196 handle, n,
7197 },
7198 Attrs: attrs,
7199 }
7200 op := scope.AddOperation(opspec)
7201 if scope.Err() != nil {
7202 return
7203 }
7204 var idx int
7205 var err error
7206 if components, idx, err = makeOutputList(op, idx, "components"); err != nil {
7207 scope.UpdateErr("QueueDequeueManyV2", err)
7208 return
7209 }
7210 return components
7211}
7212
7213// QueueDequeueV2Attr is an optional argument to QueueDequeueV2.
7214type QueueDequeueV2Attr func(optionalAttr)

Callers

nothing calls this directly

Calls 5

aClass · 0.85
makeOutputListFunction · 0.85
UpdateErrMethod · 0.80
ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by

no test coverage detected