tf.raw_ops.SparseCountSparseOutput
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Performs sparse-output bin counting for a sparse tensor input.
tf.raw_ops.SparseCountSparseOutput(
    indices,
    values,
    dense_shape,
    weights,
    binary_output,
    minlength=-1,
    maxlength=-1,
    name=None
)
Counts the number of times each value occurs in the input.
| Args | 
|---|
| indices | A Tensorof typeint64.
Tensor containing the indices of the sparse tensor to count. | 
| values | A Tensor. Must be one of the following types:int32,int64.
Tensor containing values of the sparse tensor to count. | 
| dense_shape | A Tensorof typeint64.
Tensor containing the dense shape of the sparse tensor to count. | 
| weights | A Tensor. Must be one of the following types:int32,int64,float32,float64.
A Tensor of the same shape as indices containing per-index weight values.
May also be the empty tensor if no weights are used. | 
| binary_output | A bool.
Whether to output the number of occurrences of each value or 1. | 
| minlength | An optional intthat is>= -1. Defaults to-1.
Minimum value to count. Can be set to -1 for no minimum. | 
| maxlength | An optional intthat is>= -1. Defaults to-1.
Maximum value to count. Can be set to -1 for no maximum. | 
| name | A name for the operation (optional). | 
| Returns | 
|---|
| A tuple of Tensorobjects (output_indices, output_values, output_dense_shape). | 
| output_indices | A Tensorof typeint64. | 
| output_values | A Tensor. Has the same type asweights. | 
| output_dense_shape | A Tensorof typeint64. | 
  
  
 
  
    
    
      
       
    
    
  
  
  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 2024-04-26 UTC.
  
  
  
    
      [null,null,["Last updated 2024-04-26 UTC."],[],[]]