QueueDequeueMany

public final class QueueDequeueMany

Dequeues `n` tuples of one or more tensors from the given queue.

If the queue is closed and there are fewer than `n` elements, then an OutOfRange error is returned.

This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. All of the components in the dequeued tuple will have size `n` in the 0th dimension.

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

Nested Classes

class QueueDequeueMany.Options Optional attributes for QueueDequeueMany  

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 QueueDequeueMany
create(Scope scope, Operand<?> handle, Operand<TInt32> n, List<Class<? extends TType>> componentTypes, Options... options)
Factory method to create a class wrapping a new QueueDequeueMany operation.
Iterator<Operand<TType>>
static QueueDequeueMany.Options
timeoutMs(Long timeoutMs)

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "QueueDequeueManyV2"

Public Methods

public List<Output<?>> components ()

One or more tensors that were dequeued as a tuple.

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

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

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

public Iterator<Operand<TType>> iterator ()

public static QueueDequeueMany.Options timeoutMs (Long timeoutMs)

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