tensoreflusso:: ops:: AssegnaAggiungi

#include <state_ops.h>

Aggiorna "ref" aggiungendovi "valore".

Riepilogo

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

Argomenti:

  • scope: un oggetto Scope
  • ref: dovrebbe provenire da un nodo Variable .
  • valore: il valore da aggiungere alla variabile.

Attributi facoltativi (vedi Attrs ):

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

Ritorna:

  • Output : = Uguale a "ref". Restituito per comodità per le operazioni che desiderano utilizzare il nuovo valore dopo che la variabile è stata aggiornata.

Costruttori e distruttori

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

Setter di attributi facoltativi per AssignAdd .

Attributi pubblici

operazione

Operation operation

output_rif

::tensorflow::Output output_ref

Funzioni pubbliche

AssegnaAggiungi

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

AssegnaAggiungi

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const AssignAdd::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
)