tensor akışı:: işlem:: AtaEkle

#include <state_ops.h>

'Ref'i 'değer' ekleyerek güncelleyin.

Özet

Bu işlem, güncelleme tamamlandıktan sonra "ref" çıktısını verir. Bu, sıfırlama değerini kullanması gereken işlemleri zincirlemeyi kolaylaştırır.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • ref: Variable bir düğümden olmalıdır.
  • değer: Değişkene eklenecek değer.

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

  • use_locking: True ise ekleme bir kilitle korunacaktır; aksi takdirde davranış tanımsızdır ancak daha az çekişme sergileyebilir.

İadeler:

  • Output : = "ref" ile aynı. Değişken güncellendikten sonra yeni değeri kullanmak isteyen işlemler için kolaylık sağlamak amacıyla döndürülür.

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

AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value)
AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignAdd::Attrs & attrs)

Genel özellikler

operation
output_ref

Kamu işlevleri

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

Genel statik işlevler

UseLocking (bool x)

Yapılar

tensorflow:: ops:: AssignAdd:: Öznitelikler

AssignAdd için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

operasyon

Operation operation

çıktı_ref

::tensorflow::Output output_ref

Kamu işlevleri

AtaEkle

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

AtaEkle

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const AssignAdd::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

KullanımKilitleme

Attrs UseLocking(
  bool x
)