tensorflow::ops::Variabel
#include <state_ops.h>Menyimpan status dalam bentuk tensor yang tetap ada di setiap langkah.
Ringkasan
Menghasilkan referensi ke status tensor sehingga dapat dibaca atau dimodifikasi. TODO(zhifengc/mrry): Menambahkan penunjuk ke dokumen yang lebih detail tentang berbagi status di tensorflow.
Argumen:
- Cakupan: Objek Cakupan
- bentuk: Bentuk tensor variabel.
- dtype: Tipe elemen dalam tensor variabel.
Atribut opsional (lihat Attrs ):
- kontainer: Jika tidak kosong, variabel ini ditempatkan di dalam kontainer yang diberikan. Jika tidak, kontainer default akan digunakan.
- shared_name: Jika tidak kosong, variabel ini diberi nama sesuai dengan nama bersama (shared_name) di dalam bucket yang diberikan. Jika tidak, nama node akan digunakan sebagai gantinya.
Mengembalikan:
-
Output: Referensi ke variabel tensor.
Konstruktor dan Destruktor | |
|---|---|
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype) | |
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs) |
Atribut publik | |
|---|---|
operation | |
ref | |
Fungsi publik | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Fungsi statis publik | |
|---|---|
Container (StringPiece x) | |
SharedName (StringPiece x) | |
Struktur | |
|---|---|
| tensorflow::ops::Variable::Attrs | Pengaturan atribut opsional untuk Variabel . |
Atribut publik
operasi
Operation operation
referensi
::tensorflow::Output ref
Fungsi publik
Variabel
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
Variabel
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Fungsi statis publik
Wadah
Attrs Container( StringPiece x )
Nama Bersama
Attrs SharedName( StringPiece x )