tensorflow :: ops :: Variabel

#include <state_ops.h>

Menahan status dalam bentuk tensor yang terus berlanjut di seluruh langkah.

Ringkasan

Mengeluarkan ref ke status tensor sehingga dapat dibaca atau dimodifikasi. TODO (zhifengc / mrry): Menambahkan penunjuk ke dokumen yang lebih detail tentang berbagi status di tensorflow.

Argumen:

  • scope: Objek Scope
  • bentuk: Bentuk tensor variabel.
  • dtype: Jenis elemen dalam variabel tensor.

Atribut opsional (lihat Attrs ):

  • container: Jika tidak kosong, variabel ini ditempatkan di container yang diberikan. Jika tidak, penampung default digunakan.
  • shared_name: Jika tidak kosong, variabel ini dinamai di bucket yang diberikan dengan shared_name ini. Jika tidak, nama node digunakan sebagai gantinya.

Pengembalian:

  • Output : Referensi ke tensor variabel.

Pembuat dan Penghancur

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)

Structs

tensorflow :: ops :: Variabel :: Attrs

Penyetel atribut opsional untuk Variabel .

Atribut publik

operasi

Operation operation

ref

::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 :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Wadah

Attrs Container(
  StringPiece x
)
.dll

SharedName

Attrs SharedName(
  StringPiece x
)