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

Function QueueDequeueV2

tensorflow/go/op/wrappers.go:7242–7268  ·  view source on GitHub ↗

Dequeues a tuple of one or more tensors from the given queue. This operation has k outputs, where k is the number of components in the tuples stored in the given queue, and output i is the ith component of the dequeued tuple. N.B. If the queue is empty, this operation will block until an element h

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

Source from the content-addressed store, hash-verified

7240//
7241// Returns One or more tensors that were dequeued as a tuple.
7242func QueueDequeueV2(scope *Scope, handle tf.Output, component_types []tf.DataType, optional ...QueueDequeueV2Attr) (components []tf.Output) {
7243 if scope.Err() != nil {
7244 return
7245 }
7246 attrs := map[string]interface{}{"component_types": component_types}
7247 for _, a := range optional {
7248 a(attrs)
7249 }
7250 opspec := tf.OpSpec{
7251 Type: "QueueDequeueV2",
7252 Input: []tf.Input{
7253 handle,
7254 },
7255 Attrs: attrs,
7256 }
7257 op := scope.AddOperation(opspec)
7258 if scope.Err() != nil {
7259 return
7260 }
7261 var idx int
7262 var err error
7263 if components, idx, err = makeOutputList(op, idx, "components"); err != nil {
7264 scope.UpdateErr("QueueDequeueV2", err)
7265 return
7266 }
7267 return components
7268}
7269
7270// PriorityQueueV2Attr is an optional argument to PriorityQueueV2.
7271type PriorityQueueV2Attr 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