テンソルフロー::作戦:: SparseAccumulatorTakeGradient
#include <data_flow_ops.h>SparseConditionalAccumulatorで平均スパース勾配を抽出します。
まとめ
この操作は、十分な (つまり、num_required を超える) 勾配が蓄積されるまでブロックします。アキュムレータがすでに num_required 個を超える勾配を集計している場合、累積された勾配の平均を返します。また、アキュムレータに記録された global_step を自動的に 1 ずつ増分し、集計を 0 にリセットします。
引数:
- スコープ:スコープオブジェクト
 - handle: SparseConditionalAccumulatorへのハンドル。
 - num_required: 集計を返す前に必要な勾配の数。
 - dtype: 累積された勾配のデータ型。アキュムレータの種類に応じて対応する必要があります。
 
戻り値:
コンストラクターとデストラクター | |
|---|---|
SparseAccumulatorTakeGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_required, DataType dtype) | 
パブリック属性 | |
|---|---|
indices | |
 operation | |
 shape | |
 values | |
パブリック属性
インデックス
::tensorflow::Output indices
手術
Operation operation
形
::tensorflow::Output shape
価値観
::tensorflow::Output values
公共機能
SparseAccumulatorTakeGradient
SparseAccumulatorTakeGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input num_required, DataType dtype )