W3cubDocs

/TensorFlow C++

tensorflow::ops::QueueDequeueMany

#include <data_flow_ops.h>

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

Summary

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).

Arguments:

  • scope: A Scope object
  • handle: The handle to a queue.
  • n: The number of tuples to dequeue.
  • component_types: The type of each component in a tuple.

Optional attributes (see Attrs):

  • timeout_ms: 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.

Returns:

  • OutputList: One or more tensors that were dequeued as a tuple.
Constructors and Destructors
QueueDequeueMany(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types)
QueueDequeueMany(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types, const QueueDequeueMany::Attrs & attrs)
Public attributes
components
Public functions
operator[](size_t index) const
Public static functions
TimeoutMs(int64 x)
Structs
tensorflow::ops::QueueDequeueMany::Attrs

Optional attribute setters for QueueDequeueMany.

Public attributes

components

::tensorflow::OutputList components

Public functions

QueueDequeueMany

 QueueDequeueMany(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input n,
  const DataTypeSlice & component_types
)

QueueDequeueMany

 QueueDequeueMany(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input n,
  const DataTypeSlice & component_types,
  const QueueDequeueMany::Attrs & attrs
)

operator[]

::tensorflow::Output operator[](
  size_t index
) const 

Public static functions

TimeoutMs

Attrs TimeoutMs(
  int64 x
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/queue-dequeue-many.html