tensorflow:: ops:: ScatterSub
#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を出力します。これにより、リセット値を使用する必要のある操作を連鎖させやすくなります。
重複エントリは正しく処理されます。複数のindices同じ場所を参照している場合、それらの(負の)寄与が加算されます。
updates.shape = indices.shape + ref.shape[1:]またはupdates.shape = []が必要です。

議論:
- スコープ:スコープオブジェクト
- 参照:
Variableノードから取得する必要があります。 - インデックス:
refの 1 次元へのインデックスのテンソル。 - 更新:
refから減算する更新された値のテンソル。
オプション属性( Attrs参照):
- use_locking: Trueの場合、減算はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。
返品:
-
Output:refと同じ。更新後に更新された値を使用したい操作の便宜のために返されます。
コンストラクターとデストラクタ | |
|---|---|
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) |
公開属性 | |
|---|---|
operation | |
output_ref | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
UseLocking (bool x) | |
構造 | |
|---|---|
| tensorflow:: ops:: ScatterSub:: Attrs | ScatterSubのオプション属性設定子。 |
公開属性
手術
Operation operation
出力参照
::tensorflow::Output output_ref
公的機能
ScatterSub
ScatterSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
ScatterSub
ScatterSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterSub::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
ロックを使用する
Attrs UseLocking( bool x )