tensorflow:: ops:: 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 )