tensoreflusso:: ops:: ScatterSub

#include <state_ops.h>

Sottrae gli aggiornamenti sparsi a un riferimento variabile.

Riepilogo

    # Scalar indices
    ref[indices, ...] -= updates[...]

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

    # High rank indices (for each i, ..., j)
    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 (negati) si sommano.

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 sottrarre da ref .

Attributi facoltativi (vedi Attrs ):

  • use_locking: Se True, la sottrazione sarà protetta 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

ScatterSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterSub::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:: ScatterSub:: Attrs

Setter di attributi facoltativi per ScatterSub .

Attributi pubblici

operazione

Operation operation

output_rif

::tensorflow::Output output_ref

Funzioni pubbliche

ScatterSub

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

ScatterSub

 ScatterSub(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterSub::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
)