W3cubDocs

/TensorFlow C++

tensorflow::ops::FIFOQueue::Attrs

#include <data_flow_ops.h>

Optional attribute setters for FIFOQueue.

Summary

Public attributes
capacity_ = -1
int64
container_ = ""
StringPiece
shapes_ = {}
gtl::ArraySlice< TensorShape >
shared_name_ = ""
StringPiece
Public functions
Capacity(int64 x)
The upper bound on the number of elements in this queue.
Container(StringPiece x)
If non-empty, this queue is placed in the given container.
Shapes(const gtl::ArraySlice< TensorShape > & x)
The shape of each component in a value.
SharedName(StringPiece x)
If non-empty, this queue will be shared under the given name across multiple sessions.

Public attributes

capacity_

int64 tensorflow::ops::FIFOQueue::Attrs::capacity_ = -1

container_

StringPiece tensorflow::ops::FIFOQueue::Attrs::container_ = ""

shapes_

gtl::ArraySlice< TensorShape > tensorflow::ops::FIFOQueue::Attrs::shapes_ = {}

shared_name_

StringPiece tensorflow::ops::FIFOQueue::Attrs::shared_name_ = ""

Public functions

Capacity

Attrs tensorflow::ops::FIFOQueue::Attrs::Capacity(
  int64 x
)

The upper bound on the number of elements in this queue.

Negative numbers mean no limit.

Defaults to -1

Container

Attrs tensorflow::ops::FIFOQueue::Attrs::Container(
  StringPiece x
)

If non-empty, this queue is placed in the given container.

Otherwise, a default container is used.

Defaults to ""

Shapes

Attrs tensorflow::ops::FIFOQueue::Attrs::Shapes(
  const gtl::ArraySlice< TensorShape > & x
)

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.

Defaults to []

SharedName

Attrs tensorflow::ops::FIFOQueue::Attrs::SharedName(
  StringPiece x
)

If non-empty, this queue will be shared under the given name across multiple sessions.

Defaults to ""

© 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/struct/tensorflow/ops/f-i-f-o-queue/attrs.html