tensor akışı:: işlem:: Değişken

#include <state_ops.h>

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

Özet

Okunabilmesi veya değiştirilebilmesi için tensör durumuna bir referans çıktısı verir. TODO(zhifengc/mrry): Tensor akışında durum paylaşımı hakkında daha ayrıntılı bir belgeye bir işaretçi ekler.

Argümanlar:

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

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

  • konteyner: Boş değilse, bu değişken verilen konteynere yerleştirilir. Aksi halde varsayılan kapsayıcı kullanılır.
  • paylaşılan_adı: Boş değilse, bu değişken verilen pakette bu paylaşılan_adı ile adlandırılır. Aksi takdirde bunun yerine düğüm adı kullanılır.

İadeler:

  • Output : Değişken tensöre 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

Kamu işlevleri

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

Genel statik işlevler

Container (StringPiece x)
SharedName (StringPiece x)

Yapılar

tensorflow:: ops:: Değişken:: Öznitelikler

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

Genel özellikler

operasyon

Operation operation

referans

::tensorflow::Output ref

Kamu işlevleri

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 

Genel statik işlevler

Konteyner

Attrs Container(
  StringPiece x
)

PaylaşılanAd

Attrs SharedName(
  StringPiece x
)