tensorflow::ops::ScatterSub

#include <state_ops.h>

Bir değişken referansına yapılan seyrek güncellemeleri çıkarır.

Özet

    # 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 tamamlandıktan sonra ref verir. Bu, sıfırlama değerini kullanması gereken işlemleri zincirlemeyi kolaylaştırır.

Yinelenen kayıtlar doğru şekilde ele alınır: birden fazla indices aynı konuma referans veriyorsa, bunların (tersine çevrilmiş) katkıları toplanır.

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

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • ref: Bir Variable düğümünden gelmelidir.
  • indisler: ref birinci boyutuna ait indislerin tensörü.
  • Güncellemeler: ref değerinden çıkarılacak güncellenmiş değerlerin tensörü.

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

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

İadeler:

  • Output : = ref aynı. Güncelleme işlemi tamamlandıktan sonra güncellenmiş değerleri 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

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

Genel özellikler

operation
output_ref

Kamusal işlevler

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

Herkese açık statik fonksiyonlar

UseLocking (bool x)

Yapılar

tensorflow::ops::ScatterSub::Attrs

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

Genel özellikler

operasyon

Operation operation

çıktı_referansı

::tensorflow::Output output_ref

Kamusal işlevler

DağılımAlt

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

DağılımAlt

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

KullanımKilitleme

Attrs UseLocking(
  bool x
)