FIFOQueue


tensorflow C++ API

tensorflow::ops::FIFOQueue

A queue that produces elements in first-in first-out order.


Summary

Arguments:

  • scope: A Scope object
  • component_types: The type of each component in a value.

Optional attributes (seeAttrs):

  • shapes: The shape of each component in a value. The length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.
  • capacity: The upper bound on the number of elements in this queue. Negative numbers mean no limit.
  • container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.
  • shared_name: If non-empty, this queue will be shared under the given name across multiple sessions.

Returns:

  • Output : The handle to the queue.

Constructor

  • FIFOQueue(const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const FIFOQueue::Attrs & attrs).

Public attributes

  • tensorflow::Output handle.

FIFOQueue 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.)
  • component_types: Input DataType list accordance with each input.
  • FIFOQueue::Attrs attrs : input attrs data. ex) shapes_ = {}; capacity_ = -1;container_ = ""; shared_name_ = "";

Return:

  • Output handle: Output object of FIFOQueue class object.

Result:

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

Using Method

results matching ""

    No results matching ""