QueueDequeuUpTo


tensorflow C++ API

tensorflow::ops::QueueDequeueMany

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


Summary

This operation is not supported by all queues. If a queue does not support DequeueUpTo, then an Unimplemented error is returned.

If the queue is closed and there are more than 0 but less thannelements remaining, then instead of returning an OutOfRange error like QueueDequeueMany, less thannelements are returned immediately. If the queue is closed and there are 0 elements left in the queue, then an OutOfRange error is returned just like in QueueDequeueMany. Otherwise the behavior is identical to QueueDequeueMany:

This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor.Allof 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.

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 :

  • timeout_ms: If the queue is empty, 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.

Constructor

  • QueueDequeueUpTo(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types).

Public attributes

  • tensorflow::OutputList components.

QueueDequeueUpTo block

Source link : https://github.com/EXPNUNI/enuSpace-Tensorflow/blob/master/enuSpaceTensorflow/tf_data_flow_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • handle : connect Input node.
  • n : connect Input node or Input int32 number.
  • DataTypeSlice component_types : Input DataType list accordance with each Queued data.
  • QueueDequeueUpTo::Attrs attrs : input attrs data. ex) timeout_ms= -1;

Return:

  • OutputList components: Output object of QueueDequeueUpTo class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""