tensorflow :: ops :: ScatterMax
#include <state_ops.h>
max
操作を使用して、スパース更新を変数参照にmax
ます。
概要
この操作は
# Scalar indices ref[indices, ...] = max(ref[indices, ...], updates[...]) # Vector indices (for each i) ref[indices[i], ...] = max(ref[indices[i], ...], updates[i, ...]) # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] = max(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])を計算します
この操作は、更新が行われた後にref
を出力します。これにより、リセット値を使用する必要のある操作を連鎖させることが容易になります。
重複するエントリは正しく処理されます。複数のindices
が同じ場所を参照している場合、それらの寄与は組み合わされます。
updates.shape = indices.shape + ref.shape[1:]
またはupdates.shape = []
です。
引数:
- スコープ:スコープオブジェクト
- ref:
Variable
ノードからのものである必要があります。 - インデックス:
ref
最初の次元へのインデックスのテンソル。 - 更新:
ref
に減らすための更新された値のテンソル。
オプションの属性(参照Attrs
):
- use_locking:Trueの場合、更新はロックによって保護されます。それ以外の場合、動作は定義されていませんが、競合が少なくなる可能性があります。
戻り値:
-
Output
:=ref
同じ。更新後に更新された値を使用したい操作の便宜のために返されます。
コンストラクタとデストラクタ | |
---|---|
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMax::Attrs & attrs) |
パブリック属性 | |
---|---|
operation | |
output_ref |
公の行事 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
パブリック静的関数 | |
---|---|
UseLocking (bool x) |
構造体 | |
---|---|
tensorflow :: ops :: ScatterMax :: Attrs | ScatterMaxのオプションの属性セッター。 |
パブリック属性
操作
Operation operation
output_ref
::tensorflow::Output output_ref
公の行事
ScatterMax
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
ScatterMax
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterMax::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
パブリック静的関数
UseLocking
Attrs UseLocking( bool x )