BarrierClose


tensorflow C++ API

tensorflow::ops::BarrierClose

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 (seeAttrs):

  • 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:

  • the created Operation.

Constructor

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

Public attributes

  • Operation operation.

BarrierClose block

Source link : https://github.com/EXPNUNI/enuSpace-Tensorflow/blob/master/enuSpaceTensorflow/tf_data_flow_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input handle : connect Input node.
  • BarrierClose::Attrs attrs : Input attrs. ex\) cancel_pending_enqueues_ = false;

Return:

  • Operation operation: Operation operation of BarrierClose class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""