tensoreflusso:: ops:: SparseReduceSumSparse
#include <sparse_ops.h>Calcola la somma degli elementi attraverso le dimensioni di uno SparseTensor.
Riepilogo
 Questo Op accetta uno SparseTensor ed è la controparte sparsa di tf.reduce_sum() . A differenza di SparseReduceSum , questo Op restituisce uno SparseTensor.
 Riduce sp_input lungo le dimensioni indicate in reduction_axes . A meno che keep_dims non sia vero, il rango del tensore viene ridotto di 1 per ogni voce in reduction_axes . Se keep_dims è true, le dimensioni ridotte vengono mantenute con lunghezza 1.
 Se reduction_axes non ha voci, tutte le dimensioni vengono ridotte e viene restituito un tensore con un singolo elemento. Inoltre, gli assi possono essere negativi, che vengono interpretati secondo le regole di indicizzazione in Python.
Argomenti:
- scope: un oggetto Scope
-  input_indices: 2-D. Matrice N x Rcon gli indici dei valori non vuoti in uno SparseTensor, possibilmente non in ordinamento canonico.
-  valori_input: 1-D. Nvalori non vuoti corrispondenti ainput_indices.
- forma_input: 1-D. Forma dello SparseTensor in ingresso.
-  assi_riduzione: 1-D. Lunghezza- Vettore Kcontenente gli assi di riduzione.
 Attributi facoltativi (vedi Attrs ):
- keep_dims: se vero, mantiene le dimensioni ridotte con lunghezza 1.
Resi:
| Costruttori e distruttori | |
|---|---|
| SparseReduceSumSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes) | |
| SparseReduceSumSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceSumSparse::Attrs & attrs) | 
| Attributi pubblici | |
|---|---|
| operation | |
| output_indices | |
| output_shape | |
| output_values | |
| Funzioni pubbliche statiche | |
|---|---|
| KeepDims (bool x) | |
| Strutture | |
|---|---|
| tensorflow:: ops:: SparseReduceSumSparse:: Attrs | Setter di attributi facoltativi per SparseReduceSumSparse . | 
Attributi pubblici
operazione
Operation operation
indici_output
::tensorflow::Output output_indices
forma_output
::tensorflow::Output output_shape
valori_di_output
::tensorflow::Output output_values
Funzioni pubbliche
SparseReduceSumSparse
SparseReduceSumSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes )
SparseReduceSumSparse
SparseReduceSumSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes, const SparseReduceSumSparse::Attrs & attrs )
Funzioni pubbliche statiche
KeepDims
Attrs KeepDims( bool x )