Closes the given barrier.
This operation signals that no more new elements will be inserted in the given barrier. Subsequent InsertMany that try to introduce a new key will fail. Subsequent InsertMany operations that just add missing components to already existing elements will continue to succeed. Subsequent TakeMany operations will continue to succeed if sufficient completed elements remain in the barrier. Subsequent TakeMany operations that would block will fail immediately.
- scope: A Scope object
- handle: The handle to a barrier.
Optional attributes (see
- cancel_pending_enqueues: If true, all pending enqueue requests that are blocked on the barrier's queue will be cancelled. InsertMany will fail, even if no new key is introduced.
- the created
|Constructors and Destructors|
|Public static functions|
Optional attribute setters for BarrierClose.
BarrierClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle )
BarrierClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const BarrierClose::Attrs & attrs )
Public static functions
Attrs CancelPendingEnqueues( bool 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.