Tensorflow :: ops :: PreventGradient
#include <array_ops.h>
Eine Identitätsoperation, die einen Fehler auslöst, wenn ein Gradient angefordert wird.
Zusammenfassung
Bei Ausführung in einem Diagramm gibt diese Operation ihren Eingangstensor unverändert aus.
Beim Erstellen von Operationen zur Berechnung von Verläufen gibt das TensorFlow-Gradientensystem einen Fehler zurück, wenn versucht wird, den Gradienten dieser Operation nachzuschlagen, da für diese Funktion niemals ein Gradient registriert werden muss. Diese Operation dient dazu, zu verhindern, dass subtile Fehler in einigen Eckfällen stillschweigend nicht implementierte Farbverläufe zurückgeben.
Argumente:
- scope: Ein Scope- Objekt
- Eingabe: Beliebiger Tensor.
Optionale Attribute (siehe Attrs
):
- Nachricht: Wird im Fehler gedruckt, wenn jemand versucht, diesen Vorgang zu unterscheiden.
Kehrt zurück:
-
Output
: der gleiche Eingangstensor.
Konstruktoren und Destruktoren | |
---|---|
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const PreventGradient::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Message (StringPiece x) |
Strukturen | |
---|---|
tensorflow :: ops :: PreventGradient :: Attrs | Optionale Attributsetzer für PreventGradient . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
PreventGradient
PreventGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
PreventGradient
PreventGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const PreventGradient::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Botschaft
Attrs Message( StringPiece x )