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

tensör akışı:: operasyon:: DağılımMin

#include <state_ops.h>

min işlemini kullanarak seyrek güncellemeleri değişken bir referansa indirger.

Özet

Bu işlem

# Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])

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

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

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 bir şekilde işlenir: birden fazla indices aynı konuma başvuruyorsa, katkıları birleşir.

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

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • ref: Bir Variable düğümünden olmalıdır.
  • indeksler: ref ilk boyutuna bir endeks tensörü.
  • güncellemeler: ref indirgemek için güncellenmiş değerlerin bir tensörü.

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

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

İadeler:

  • Output : = ref ile aynı . Güncelleme yapıldıktan sonra güncellenen değerleri kullanmak isteyen işlemler için kolaylık olarak döndürülür.

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

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

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

Genel özellikler

operasyon

Operation operation

çıktı_ref

::tensorflow::Output output_ref

Kamu işlevleri

DağılımMin

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

DağılımMin

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıkış

 operator::tensorflow::Output() const 

Genel statik işlevler

KullanımKilitleme

Attrs UseLocking(
  bool x
)