tensorflow::ops::Değişken

#include <state_ops.h>

Adımlar boyunca devam eden bir tensör biçiminde durumu saklar.

Özet

Tensor durumuna bir referans çıktısı verir, böylece okunabilir veya değiştirilebilir. TODO(zhifengc/mrry): TensorFlow'da durum paylaşımı hakkında daha ayrıntılı bir belgeye işaretçi ekler.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Şekil: Değişken tensörün şekli.
  • dtype: Değişken tensördeki elemanların türü.

İsteğe bağlı özellikler (bkz. Attrs ):

  • Kapsayıcı: Boş değilse, bu değişken belirtilen kapsayıcıya yerleştirilir. Aksi takdirde, varsayılan bir kapsayıcı kullanılır.
  • shared_name: Boş değilse, bu değişken belirtilen kovada bu shared_name ile adlandırılır. Aksi takdirde, bunun yerine düğüm adı kullanılır.

İadeler:

  • Output : Değişken tensörüne bir referans.

Yapıcılar ve Yıkıcılar

Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)

Genel özellikler

operation
ref

Kamusal işlevler

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Herkese açık statik fonksiyonlar

Container (StringPiece x)
SharedName (StringPiece x)

Yapılar

tensorflow::ops::Variable::Attrs

Değişken için isteğe bağlı özellik ayarlayıcıları.

Genel özellikler

operasyon

Operation operation

referans

::tensorflow::Output ref

Kamusal işlevler

Değişken

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

Değişken

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

Konteyner

Attrs Container(
  StringPiece x
)

Paylaşılan İsim

Attrs SharedName(
  StringPiece x
)