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

#include <state_ops.h>

Değişken referansını seyrek güncellemelere böler.

Ö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ı bölünü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 bölü bir değerler 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

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

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

Genel özellikler

operasyon

Operation operation

output_ref

::tensorflow::Output output_ref

Kamusal işlevler

ScatterDiv

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

ScatterDiv

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