tensorflow::ops::SparseReduceMax
#include <sparse_ops.h>Calcola il valore massimo degli elementi lungo le dimensioni di un SparseTensor.
Riepilogo
Questa operazione accetta un SparseTensor ed è la controparte sparsa di tf.reduce_max() . In particolare, questa operazione restituisce anche un Tensor denso invece di uno sparso.
Riduce sp_input lungo le dimensioni specificate in reduction_axes . A meno che keep_dims non sia true, il rango del tensore viene ridotto di 1 per ogni elemento in reduction_axes . Se keep_dims è true, le dimensioni ridotte vengono mantenute con lunghezza 1.
Se reduction_axes non contiene voci, tutte le dimensioni vengono ridotte e viene restituito un tensore con un singolo elemento. Inoltre, gli assi possono essere negativi, e in tal caso vengono interpretati secondo le regole di indicizzazione di Python.
Argomentazioni:
- ambito: un oggetto Scope
- input_indices: Matrice 2D
N x Rcon gli indici dei valori non vuoti in un SparseTensor, eventualmente non in ordine canonico. - input_values: 1-D.
Nvalori non vuoti corrispondenti ainput_indices. - input_shape: 1-D. Forma del tensore sparso di input.
- assi_di_riduzione: vettore unidimensionale di lunghezza
Kcontenente gli assi di riduzione.
Attributi opzionali (vedere Attrs ):
- keep_dims: Se impostato su true, mantiene le dimensioni ridotte con lunghezza 1.
Resi:
Costruttori e distruttori | |
|---|---|
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes) | |
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs) |
attributi pubblici | |
|---|---|
operation | |
output | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
KeepDims (bool x) | |
Strutture | |
|---|---|
| tensorflow::ops::SparseReduceMax::Attrs | Impostatori di attributi opzionali per SparseReduceMax . |
attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
SparseReduceMax
SparseReduceMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes )
SparseReduceMax
SparseReduceMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
KeepDims
Attrs KeepDims( bool x )