Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: Değişken

#include <state_ops.h>

Durumu, adımlar boyunca devam eden bir tensör şeklinde tutar.

Özet

Okunabilmesi veya değiştirilebilmesi için tensör durumuna bir ref çıkarır. TODO (zhifengc / mrry): Tensorflow'da paylaşım durumları hakkında daha ayrıntılı bir belgeye işaretçi ekler.

Argümanlar:

  • kapsam: Bir Scope 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 takdirde, varsayılan bir kap kullanılır.
  • shared_name: Boş değilse, bu değişken verilen pakette bu shared_name 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

Kamusal işlevler

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

Değişken için isteğe bağlı öznitelik belirleyiciler.

Genel özellikler

operasyon

Operation operation

ref

::tensorflow::Output ref

Kamusal işlevler

Değişken

0beyaz

Değişken

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

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const 

Genel statik işlevler

Konteyner

Attrs Container(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)