tensoreflusso:: ops:: AssegnaSub
#include <state_ops.h>Aggiorna "ref" sottraendo "value" da esso.
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 sottrarre alla variabile.
 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.
Resi:
-  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 | |
|---|---|
| AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value) | |
| AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignSub::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:: AssignSub:: Attrs | Setter di attributi facoltativi per AssignSub . | 
Attributi pubblici
operazione
Operation operation
output_rif
::tensorflow::Output output_ref
Funzioni pubbliche
AssegnaSub
AssignSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value )
AssegnaSub
AssignSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value, const AssignSub::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 )