#include <data_flow_ops.h>
Optional attribute setters for RandomShuffleQueue.
Public attributes | |
---|---|
capacity_ = -1 | int64 |
container_ = "" | StringPiece |
min_after_dequeue_ = 0 | int64 |
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
shapes_ = {} | gtl::ArraySlice< PartialTensorShape > |
shared_name_ = "" | StringPiece |
Public functions | |
---|---|
Capacity(int64 x) | TF_MUST_USE_RESULT Attrs The upper bound on the number of elements in this queue. |
Container(StringPiece x) | TF_MUST_USE_RESULT Attrs If non-empty, this queue is placed in the given container. |
MinAfterDequeue(int64 x) | TF_MUST_USE_RESULT Attrs Dequeue will block unless there would be this many elements after the dequeue or the queue is closed. |
Seed(int64 x) | TF_MUST_USE_RESULT Attrs If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. |
Seed2(int64 x) | TF_MUST_USE_RESULT Attrs A second seed to avoid seed collision. |
Shapes(const gtl::ArraySlice< PartialTensorShape > & x) | TF_MUST_USE_RESULT Attrs The shape of each component in a value. |
SharedName(StringPiece x) | TF_MUST_USE_RESULT Attrs If non-empty, this queue will be shared under the given name across multiple sessions. |
int64 tensorflow::ops::RandomShuffleQueue::Attrs::capacity_ = -1
StringPiece tensorflow::ops::RandomShuffleQueue::Attrs::container_ = ""
int64 tensorflow::ops::RandomShuffleQueue::Attrs::min_after_dequeue_ = 0
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed2_ = 0
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed_ = 0
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::RandomShuffleQueue::Attrs::shapes_ = {}
StringPiece tensorflow::ops::RandomShuffleQueue::Attrs::shared_name_ = ""
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Capacity( int64 x )
The upper bound on the number of elements in this queue.
Negative numbers mean no limit.
Defaults to -1
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Container( StringPiece x )
If non-empty, this queue is placed in the given container.
Otherwise, a default container is used.
Defaults to ""
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::MinAfterDequeue( int64 x )
Dequeue will block unless there would be this many elements after the dequeue or the queue is closed.
This ensures a minimum level of mixing of elements.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed( int64 x )
If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed.
Otherwise, a random seed is used.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed2( int64 x )
A second seed to avoid seed collision.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Shapes( const gtl::ArraySlice< PartialTensorShape > & 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 []
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::SharedName( StringPiece x )
If non-empty, this queue will be shared under the given name across multiple sessions.
Defaults to ""
© 2018 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/random-shuffle-queue/attrs.html