Tensorflow :: ops :: Variable
#include <state_ops.h>
Hält den Zustand in Form eines Tensors, der über Stufen hinweg bestehen bleibt.
Zusammenfassung
Gibt eine Referenz in den Tensorzustand aus, damit sie gelesen oder geändert werden kann. TODO (zhifengc / mrry): Fügt einen Zeiger auf ein detaillierteres Dokument zum Teilen von Zuständen im Tensorflow hinzu.
Argumente:
- scope: Ein Scope- Objekt
- Form: Die Form des variablen Tensors.
- dtype: Der Typ der Elemente im variablen Tensor.
Optionale Attribute (siehe Attrs
):
- container: Wenn nicht leer, wird diese Variable in den angegebenen Container eingefügt. Andernfalls wird ein Standardcontainer verwendet.
- shared_name: Wenn diese Variable nicht leer ist, wird sie im angegebenen Bucket mit diesem shared_name benannt. Andernfalls wird stattdessen der Knotenname verwendet.
Kehrt zurück:
-
Output
: Ein Verweis auf den variablen Tensor.
Konstruktoren und Destruktoren | |
---|---|
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype) | |
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
ref |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Container (StringPiece x) | |
SharedName (StringPiece x) |
Strukturen | |
---|---|
tensorflow :: ops :: Variable :: Attrs | Optionale Attributsetzer für Variable . |
Öffentliche Attribute
Operation
Operation operation
ref
::tensorflow::Output ref
Öffentliche Funktionen
Variable
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
Variable
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::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 )
SharedName
Attrs SharedName( StringPiece x )