@Operator public final class QueueDequeue extends PrimitiveOp implements Iterable<Operand<Object>>
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 has been dequeued (or 'timeout_ms' elapses, if specified).
| Modifier and Type | Class and Description |
|---|---|
static class |
QueueDequeue.Options
Optional attributes for
QueueDequeue |
operation| Modifier and Type | Method and Description |
|---|---|
List<Output<?>> |
components()
One or more tensors that were dequeued as a tuple.
|
static QueueDequeue |
create(Scope scope,
Operand<?> handle,
List<Class<?>> componentTypes,
QueueDequeue.Options... options)
Factory method to create a class to wrap a new QueueDequeue operation to the graph.
|
Iterator<Operand<Object>> |
iterator() |
static QueueDequeue.Options |
timeoutMs(Long timeoutMs) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static QueueDequeue create(Scope scope, Operand<?> handle, List<Class<?>> componentTypes, QueueDequeue.Options... options)
scope - current graph scopehandle - The handle to a queue.componentTypes - The type of each component in a tuple.options - carries optional attributes valuespublic static QueueDequeue.Options timeoutMs(Long timeoutMs)
timeoutMs - If the queue is empty, this operation will block for up to
timeout_ms milliseconds.
Note: This option is not supported yet.Copyright © 2015–2019. All rights reserved.