Tensorflow :: ops :: SparseConditionalAccumulator
#include <data_flow_ops.h>
Ein bedingter Akkumulator zum Aggregieren von spärlichen Gradienten.
Zusammenfassung
Der Akkumulator akzeptiert Gradienten, die mit local_step größer oder gleich dem letzten dem Akkumulator bekannten global_step markiert sind. Der Durchschnitt kann aus dem Akkumulator extrahiert werden, vorausgesetzt, es wurden ausreichende Gradienten akkumuliert. Durch Extrahieren des Durchschnitts wird das Aggregat automatisch auf 0 zurückgesetzt und der vom Akkumulator aufgezeichnete global_step erhöht.
Argumente:
- scope: Ein Scope- Objekt
- dtype: Der Typ des akkumulierten Werts.
- Form: Die Form der Werte.
Optionale Attribute (siehe Attrs
):
- Container: Wenn dieser Akku nicht leer ist, wird er in den angegebenen Container gestellt. Andernfalls wird ein Standardcontainer verwendet.
- shared_name: Wenn dieser Akku nicht leer ist, wird er unter dem angegebenen Namen über mehrere Sitzungen hinweg gemeinsam genutzt.
Kehrt zurück:
-
Output
: Der Griff zum Akku.
Konstruktoren und Destruktoren | |
---|---|
SparseConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape) | |
SparseConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const SparseConditionalAccumulator::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
handle | |
operation |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Container (StringPiece x) | |
ReductionType (StringPiece x) | |
SharedName (StringPiece x) |
Strukturen | |
---|---|
tensorflow :: ops :: SparseConditionalAccumulator :: Attrs | Optionale Attributsetzer für SparseConditionalAccumulator . |
Öffentliche Attribute
Griff
::tensorflow::Output handle
Operation
Operation operation
Öffentliche Funktionen
SparseConditionalAccumulator
SparseConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape )
SparseConditionalAccumulator
SparseConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const SparseConditionalAccumulator::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Container
Attrs Container( StringPiece x )
ReductionType
Attrs ReductionType( StringPiece x )
SharedName
Attrs SharedName( StringPiece x )