QueueDequeue

public final class QueueDequeue

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 has been dequeued (or 'timeout_ms' elapses, if specified).

Nested Classes

class QueueDequeue.Options Optional attributes for QueueDequeue  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

List<Output<?>>
components()
One or more tensors that were dequeued as a tuple.
static QueueDequeue
create(Scope scope, Operand<?> handle, List<Class<? extends TType>> componentTypes, Options... options)
Factory method to create a class wrapping a new QueueDequeue operation.
Iterator<Operand<TType>>
static QueueDequeue.Options
timeoutMs(Long timeoutMs)

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.
abstract void
forEach(Consumer<? super T> arg0)
abstract Iterator<Operand<TType>>
iterator()
abstract Spliterator<Operand<TType>>
spliterator()

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "QueueDequeueV2"

Public Methods

public List<Output<?>> components ()

One or more tensors that were dequeued as a tuple.

public static QueueDequeue create (Scope scope, Operand<?> handle, List<Class<? extends TType>> componentTypes, Options... options)

Factory method to create a class wrapping a new QueueDequeue operation.

Parameters
scope current scope
handle The handle to a queue.
componentTypes The type of each component in a tuple.
options carries optional attributes values
Returns
  • a new instance of QueueDequeue

public Iterator<Operand<TType>> iterator ()

public static QueueDequeue.Options timeoutMs (Long timeoutMs)

Parameters
timeoutMs If the queue is empty, this operation will block for up to timeout_ms milliseconds. Note: This option is not supported yet.