tft.deduplicate_tensor_per_row
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Deduplicates each row (0-th dimension) of the provided tensor.
tft.deduplicate_tensor_per_row(
    input_tensor, name=None
)
| Args | 
|---|
| input_tensor | A two-dimensional TensororSparseTensor. The first
dimension is assumed to be the batch or "row" dimension, and deduplication
is done on the 2nd dimension. If the Tensor is 1D it is returned as the
equivalentSparseTensorsince the "row" is a scalar can't be further
deduplicated. | 
| name | Optional name for the operation. | 
| Returns | 
|---|
| A SparseTensorcontaining the unique set of values from each
row of the input. Note: the original order of the input may not be
preserved. | 
  
  
 
  
    
    
      
       
    
    
  
  
  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.
  Last updated 2024-11-01 UTC.
  
  
  
    
      [null,null,["Last updated 2024-11-01 UTC."],[],[]]