tensor akışı:: işlem:: Dağılım Güncellemesi
#include <state_ops.h>Bir değişken referansına seyrek güncellemeler uygular.
Özet
Bu işlem hesaplanır
# 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 çıktısını verir. Bu, sıfırlama değerini kullanması gereken işlemleri zincirlemeyi kolaylaştırır.
ref değerler birden fazla güncellenecekse, indices yinelenen girişler olduğundan, her değer için güncellemelerin gerçekleşme sırası tanımsızdır.
updates.shape = indices.shape + ref.shape[1:] veya updates.shape = [] gerektirir.

Ayrıca bkz tf.batch_scatter_update ve tf.scatter_nd_update .
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- ref:
Variablebir düğümden olmalıdır. - indeksler:
refilk boyutuna endekslerin tensörü. - güncellemeler:
refdepolanacak güncellenmiş değerlerin tensörü.
İsteğe bağlı özellikler (bkz. Attrs ):
- use_locking: True ise atama bir kilitle korunacaktır; aksi takdirde davranış tanımsızdır ancak daha az çekişme sergileyebilir.
İade:
-
Output: =refile aynı. Güncelleme yapıldıktan sonra güncellenen 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 | |
|---|---|
ScatterUpdate (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterUpdate (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterUpdate::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:: ScatterUpdate:: Öznitelikler | ScatterUpdate için isteğe bağlı özellik ayarlayıcılar. |
Genel özellikler
operasyon
Operation operation
çıktı_ref
::tensorflow::Output output_ref
Kamu işlevleri
Dağılım Güncellemesi
ScatterUpdate( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
Dağılım Güncellemesi
ScatterUpdate( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterUpdate::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 )