tensorflow::ops::BarrierClose

#include <data_flow_ops.h>

Closes the given barrier.

Summary

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.

Arguments:

  • scope: A Scope object
  • handle: The handle to a barrier.

Optional attributes (see Attrs):

  • cancel_pending_enqueues: If true, all pending enqueue requests that are blocked on the barrier's queue will be canceled. InsertMany will fail, even if no new key is introduced.

Returns:

Constructors and Destructors
BarrierClose(const ::tensorflow::Scope & scope, ::tensorflow::Input handle)
BarrierClose(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const BarrierClose::Attrs & attrs)
Public attributes
operation
Public functions
operator::tensorflow::Operation() const
Public static functions
CancelPendingEnqueues(bool x)
Structs
tensorflow::ops::BarrierClose::Attrs

Optional attribute setters for BarrierClose.

Public attributes

operation

Operation operation

Public functions

BarrierClose

 BarrierClose(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle
)

BarrierClose

 BarrierClose(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  const BarrierClose::Attrs & attrs
)

operator::tensorflow::Operation

operator::tensorflow::Operation() const 

Public static functions

CancelPendingEnqueues

Attrs CancelPendingEnqueues(
  bool x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/barrier-close