tensorflow::ops::Barrier::Attrs

tensorflow::ops::Barrier::Attrs

#include <data_flow_ops.h>

Optional attribute setters for Barrier.

Summary

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

Public attributes

capacity_

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

container_

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

shapes_

gtl::ArraySlice< PartialTensorShape > tensorflow::ops::Barrier::Attrs::shapes_ = {}

shared_name_

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

Public functions

Capacity

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

The capacity of the barrier.

The default capacity is MAX_INT32, which is the largest capacity of the underlying queue.

Defaults to -1

Container

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

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

Otherwise, a default container is used.

Defaults to ""

Shapes

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

The shape of each component in a value.

Each shape must be 1 in the first dimension. The length of this attr must be the same as the length of component_types.

Defaults to []

SharedName

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

If non-empty, this barrier 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/barrier/attrs.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部