Tensorflow :: ops :: SparseAccumulatorApplyGradient
#include <data_flow_ops.h>
Wendet einen spärlichen Gradienten auf einen bestimmten Akkumulator an.
Zusammenfassung
Fügt nicht hinzu, wenn local_step kleiner als global_step des Akkumulators ist.
Argumente:
- scope: Ein Scope- Objekt
- Griff: Der Griff zu einem Akku.
- local_step: Der Wert local_step, bei dem der spärliche Gradient berechnet wurde.
- gradient_indices: Indizes des zu akkumulierenden spärlichen Gradienten. Muss ein Vektor sein.
- gradient_values: Werte sind die Nicht-Null-Schichten des Gradienten und müssen dieselbe erste Dimension wie Indizes haben, dh das durch Indizes und Werte dargestellte nnz muss konsistent sein.
- gradient_shape: Form des zu akkumulierenden spärlichen Gradienten.
- has_known_shape: Boolescher Wert, der angibt, ob gradient_shape unbekannt ist. In diesem Fall wird die Eingabe während der Validierung ignoriert.
Kehrt zurück:
- die erstellte
Operation
Konstruktoren und Destruktoren | |
---|---|
SparseAccumulatorApplyGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input local_step, :: tensorflow::Input gradient_indices, :: tensorflow::Input gradient_values, :: tensorflow::Input gradient_shape, bool has_known_shape) |
Öffentliche Attribute | |
---|---|
operation |
Öffentliche Funktionen | |
---|---|
operator::tensorflow::Operation () const |
Öffentliche Attribute
Operation
Operation operation
Öffentliche Funktionen
SparseAccumulatorApplyGradient
SparseAccumulatorApplyGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input local_step, ::tensorflow::Input gradient_indices, ::tensorflow::Input gradient_values, ::tensorflow::Input gradient_shape, bool has_known_shape )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const