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)
| 7240 | // |
| 7241 | // Returns One or more tensors that were dequeued as a tuple. |
| 7242 | func 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. |
| 7271 | type PriorityQueueV2Attr func(optionalAttr) |
nothing calls this directly
no test coverage detected