tensorflow::ops::FIFOQueue

#include <data_flow_ops.h>

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 (see Attrs):

  • 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.
Constructors and Destructors
FIFOQueue(const ::tensorflow::Scope & scope, const DataTypeSlice & component_types)
FIFOQueue(const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const FIFOQueue::Attrs & attrs)
Public attributes
handle
operation
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Capacity(int64 x)
Container(StringPiece x)
Shapes(const gtl::ArraySlice< PartialTensorShape > & x)
SharedName(StringPiece x)
Structs
tensorflow::ops::FIFOQueue::Attrs

Optional attribute setters for FIFOQueue.

Public attributes

handle

::tensorflow::Output handle

operation

Operation operation

Public functions

FIFOQueue

 FIFOQueue(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types
)

FIFOQueue

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Capacity

Attrs Capacity(
  int64 x
)

Container

Attrs Container(
  StringPiece x
)

Shapes

Attrs Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

SharedName

Attrs SharedName(
  StringPiece x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/f-i-f-o-queue