tensorflow::ops::PriorityQueue::Attrs

#include <data_flow_ops.h>

Optional attribute setters for PriorityQueue.

Summary

Public attributes
capacity_ = -1
int64
component_types_ = {}
DataTypeSlice
container_ = ""
StringPiece
shared_name_ = ""
StringPiece
Public functions
Capacity(int64 x)
TF_MUST_USE_RESULT Attrs
The upper bound on the number of elements in this queue.
ComponentTypes(const DataTypeSlice & x)
TF_MUST_USE_RESULT Attrs
The type of each component in a value.
Container(StringPiece x)
TF_MUST_USE_RESULT Attrs
If non-empty, this queue is placed in the given container.
SharedName(StringPiece x)
TF_MUST_USE_RESULT Attrs
If non-empty, this queue will be shared under the given name across multiple sessions.

Public attributes

capacity_

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

component_types_

DataTypeSlice tensorflow::ops::PriorityQueue::Attrs::component_types_ = {}

container_

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

shared_name_

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

Public functions

Capacity

TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Capacity(
  int64 x
)

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

Negative numbers mean no limit.

Defaults to -1

ComponentTypes

TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::ComponentTypes(
  const DataTypeSlice & x
)

The type of each component in a value.

Defaults to []

Container

TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Container(
  StringPiece x
)

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

Otherwise, a default container is used.

Defaults to ""

SharedName

TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::SharedName(
  StringPiece x
)

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

Defaults to ""

© 2020 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/versions/r2.3/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs