#include <data_flow_ops.h>
Defines a barrier that persists across different graph executions.
A barrier represents a key-value map, where each key is a string, and each value is a tuple of tensors.
At runtime, the barrier contains 'complete' and 'incomplete' elements. A complete element has defined tensors for all components of its value tuple, and may be accessed using BarrierTakeMany. An incomplete element has some undefined components in its value tuple, and may be updated using BarrierInsertMany.
Arguments:
Optional attributes (see Attrs
):
Returns:
Output
: The handle to the barrier. Constructors and Destructors | |
---|---|
Barrier(const ::tensorflow::Scope & scope, const DataTypeSlice & component_types) | |
Barrier(const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const Barrier::Attrs & attrs) |
Public attributes | |
---|---|
handle |
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::Barrier::Attrs | Optional attribute setters for Barrier. |
::tensorflow::Output handle
Barrier( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types )
Barrier( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const Barrier::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Capacity( int64 x )
Attrs Container( StringPiece x )
Attrs Shapes( const gtl::ArraySlice< PartialTensorShape > & x )
Attrs SharedName( StringPiece x )
© 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/class/tensorflow/ops/barrier.html