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

Function QueueDequeueUpToV2

tensorflow/go/op/wrappers.go:7120–7146  ·  view source on GitHub ↗

Dequeues `n` tuples of one or more tensors from the given queue. This operation is not supported by all queues. If a queue does not support DequeueUpTo, then an Unimplemented error is returned. If the queue is closed and there are more than 0 but less than `n` elements remaining, then instead of

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

Source from the content-addressed store, hash-verified

7118//
7119// Returns One or more tensors that were dequeued as a tuple.
7120func QueueDequeueUpToV2(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueUpToV2Attr) (components []tf.Output) {
7121 if scope.Err() != nil {
7122 return
7123 }
7124 attrs := map[string]interface{}{"component_types": component_types}
7125 for _, a := range optional {
7126 a(attrs)
7127 }
7128 opspec := tf.OpSpec{
7129 Type: "QueueDequeueUpToV2",
7130 Input: []tf.Input{
7131 handle, n,
7132 },
7133 Attrs: attrs,
7134 }
7135 op := scope.AddOperation(opspec)
7136 if scope.Err() != nil {
7137 return
7138 }
7139 var idx int
7140 var err error
7141 if components, idx, err = makeOutputList(op, idx, "components"); err != nil {
7142 scope.UpdateErr("QueueDequeueUpToV2", err)
7143 return
7144 }
7145 return components
7146}
7147
7148// QueueDequeueManyV2Attr is an optional argument to QueueDequeueManyV2.
7149type QueueDequeueManyV2Attr 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