tensoreflusso:: ops:: SparseReduceMaxSparse

#include <sparse_ops.h>

Calcola il numero massimo di elementi attraverso le dimensioni di uno SparseTensor.

Riepilogo

Questo Op accetta uno SparseTensor ed è la controparte sparsa di tf.reduce_max() . A differenza di SparseReduceMax , 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 R con gli indici dei valori non vuoti in uno SparseTensor, possibilmente non in ordinamento canonico.
  • valori_input: 1-D. N valori non vuoti corrispondenti a input_indices .
  • forma_input: 1-D. Forma dello SparseTensor in ingresso.
  • assi_riduzione: 1-D. Lunghezza- Vettore K contenente gli assi di riduzione.

Attributi facoltativi (vedi Attrs ):

  • keep_dims: se vero, mantiene le dimensioni ridotte con lunghezza 1.

Ritorna:

Costruttori e distruttori

SparseReduceMaxSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes)
SparseReduceMaxSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMaxSparse::Attrs & attrs)

Attributi pubblici

operation
output_indices
output_shape
output_values

Funzioni pubbliche statiche

KeepDims (bool x)

Strutture

tensorflow:: ops:: SparseReduceMaxSparse:: Attrs

Setter di attributi facoltativi per SparseReduceMaxSparse .

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

SparseReduceMaxSparse

 SparseReduceMaxSparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes
)

SparseReduceMaxSparse

 SparseReduceMaxSparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes,
  const SparseReduceMaxSparse::Attrs & attrs
)

Funzioni pubbliche statiche

KeepDims

Attrs KeepDims(
  bool x
)