tf.raw_ops.BarrierTakeMany
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Takes the given number of completed elements from a barrier.
tf.raw_ops.BarrierTakeMany(
    handle,
    num_elements,
    component_types,
    allow_small_batch=False,
    wait_for_incomplete=False,
    timeout_ms=-1,
    name=None
)
This operation concatenates completed-element component tensors along
the 0th dimension to make a single component tensor.
Elements come out of the barrier when they are complete, and in the order
in which they were placed into the barrier.  The indices output provides
information about the batch in which each element was originally inserted
into the barrier.
| Args | 
|---|
| handle | A Tensorof type mutablestring. The handle to a barrier. | 
| num_elements | A Tensorof typeint32.
A single-element tensor containing the number of elements to
take. | 
| component_types | A list of tf.DTypesthat has length>= 1.
The type of each component in a value. | 
| allow_small_batch | An optional bool. Defaults toFalse.
Allow to return less than num_elements items if barrier is
already closed. | 
| wait_for_incomplete | An optional bool. Defaults toFalse. | 
| timeout_ms | An optional int. Defaults to-1.
If the queue is empty, this operation will block for up to
timeout_ms milliseconds.
Note: This option is not supported yet. | 
| name | A name for the operation (optional). | 
| Returns | 
|---|
| A tuple of Tensorobjects (indices, keys, values). | 
| indices | A Tensorof typeint64. | 
| keys | A Tensorof typestring. | 
| values | A list of Tensorobjects of typecomponent_types. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
  Last updated 2022-10-27 UTC.
  
  
  
    
      [null,null,["Last updated 2022-10-27 UTC."],[],[]]