テンソルフロー::作戦::スキャッターアップデート
#include <state_ops.h>スパース更新を変数参照に適用します。
まとめ
この操作で計算されるのは、
# 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, ...]この操作では、更新が完了した後にrefを出力します。これにより、リセット値を使用する必要がある操作をチェーンすることが容易になります。
refの値が複数回更新される場合、 indicesに重複したエントリがあるため、各値の更新の順序は未定義になります。
updates.shape = indices.shape + ref.shape[1:]またはupdates.shape = []必要です。

tf.batch_scatter_updateおよびtf.scatter_nd_updateも参照してください。
引数:
- スコープ:スコープオブジェクト
- ref:
Variableノードからのものである必要があります。 - indices:
refの最初の次元へのインデックスのテンソル。 - updated:
refに格納する更新された値のテンソル。
オプションの属性 ( Attrsを参照):
- use_locking: True の場合、割り当てはロックによって保護されます。それ以外の場合、動作は未定義ですが、競合が少なくなる可能性があります。
戻り値:
-
Output: =refと同じ。更新の完了後に更新された値を使用する操作の便宜として返されます。
コンストラクターとデストラクター | |
|---|---|
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) |
パブリック属性 | |
|---|---|
operation | |
output_ref | |
公共機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
UseLocking (bool x) | |
構造体 | |
|---|---|
| tensorflow:: ops:: ScatterUpdate:: Attrs | ScatterUpdateのオプションの属性セッター。 |
パブリック属性
手術
Operation operation
出力参照
::tensorflow::Output output_ref
公共機能
スキャッターアップデート
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 )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
ロックを使用する
Attrs UseLocking( bool x )