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

#include <state_ops.h>

Seyrek güncellemeleri bir değişken referansla çarpar.

Özet

Bu işlem hesaplar

    # Scalar indices
    ref[indices, ...] *= updates[...]

    # Vector indices (for each i)
    ref[indices[i], ...] *= updates[i, ...]

    # High rank indices (for each i, ..., j)
    ref[indices[i, ..., j], ...] *= updates[i, ..., j, ...]

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

Yinelenen girişler doğru şekilde işlenir: birden çok indices aynı konuma başvuruyorsa, katkıları çoğalır.

updates.shape = indices.shape + ref.shape[1:] veya updates.shape = indices.shape + ref.shape[1:] updates.shape = [] .

Argümanlar:

  • kapsam: Bir Scope nesnesi
  • ref: Variable düğümden olmalıdır.
  • indeksleri: birinci boyuta endeksleri tensör ref .
  • güncellemeler: ref ile çarpılacak güncellenmiş değerlerin tensörü.

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

  • use_locking: True ise, işlem bir kilitle korunacaktır; aksi takdirde davranış tanımsızdır, ancak daha az çekişme gösterebilir.

İadeler:

  • Output : = ref aynı. Güncelleme yapıldıktan sonra güncellenmiş değerleri kullanmak isteyen işlemler için kolaylık sağlamak amacıyla geri döndü.

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

ScatterMul (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterMul (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMul::Attrs & attrs)

Genel özellikler

operation
output_ref

Kamusal işlevler

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

Genel statik işlevler

UseLocking (bool x)

Yapılar

tensorflow :: ops :: ScatterMul :: Attrs

ScatterMul için isteğe bağlı öznitelik belirleyiciler.

Genel özellikler

operasyon

Operation operation

output_ref

::tensorflow::Output output_ref

Kamusal işlevler

ScatterMul

 ScatterMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMul

 ScatterMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMul::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

KullanımKilitleme

Attrs UseLocking(
  bool x
)