tensoreflusso:: ops:: ScatterMax

#include <state_ops.h>

Riduce gli aggiornamenti sparsi in un riferimento variabile utilizzando l'operazione max .

Riepilogo

Questa operazione calcola

# Scalar indices
ref[indices, ...] = max(ref[indices, ...], updates[...])

# Vector indices (for each i)
ref[indices[i], ...] = max(ref[indices[i], ...], updates[i, ...])

# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] = max(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])

Questa operazione restituisce ref al termine dell'aggiornamento. Ciò semplifica il concatenamento delle operazioni che richiedono l'utilizzo del valore di ripristino.

Le voci duplicate vengono gestite correttamente: se più indices fanno riferimento alla stessa posizione, i loro contributi si combinano.

Richiede updates.shape = indices.shape + ref.shape[1:] o updates.shape = [] .

Argomenti:

  • scope: un oggetto Scope
  • ref: dovrebbe provenire da un nodo Variable .
  • indici: un tensore di indici nella prima dimensione di ref .
  • aggiornamenti: un tensore di valori aggiornati da ridurre in ref .

Attributi facoltativi (vedi Attrs ):

  • use_locking: Se True, l'aggiornamento sarà protetto da un lucchetto; altrimenti il ​​comportamento non è definito, ma può mostrare meno contesa.

Ritorna:

  • Output : = Uguale al ref . Restituito per comodità per le operazioni che desiderano utilizzare i valori aggiornati al termine dell'aggiornamento.

Costruttori e distruttori

ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMax::Attrs & attrs)

Attributi pubblici

operation
output_ref

Funzioni pubbliche

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Funzioni pubbliche statiche

UseLocking (bool x)

Strutture

tensorflow:: ops:: ScatterMax:: Attrs

Setter di attributi facoltativi per ScatterMax .

Attributi pubblici

operazione

Operation operation

output_rif

::tensorflow::Output output_ref

Funzioni pubbliche

ScatterMax

 ScatterMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMax

 ScatterMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMax::Attrs & attrs
)

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

UsaLocking

Attrs UseLocking(
  bool x
)