tensorflow :: ops :: ResourceSparseApplyAdagrad
#include <training_ops.h>
adagrad 체계에 따라 '* var'및 '* accum'의 관련 항목을 업데이트합니다.
요약
그것은 우리가 grad가있는 행을위한 것입니다. 우리는 다음과 같이 var와 accum을 업데이트합니다 : accum + = grad * grad var-= lr * grad * (1 / sqrt (accum))
인수 :
- 범위 : 범위 개체
- var : Variable ()에서 가져와야합니다.
- accum : Variable ()에서 가져와야합니다.
- lr : 학습률. 스칼라 여야합니다.
- grad : 그래디언트입니다.
- 인덱스 : var 및 accum의 첫 번째 차원에 대한 인덱스 벡터.
선택적 속성 ( Attrs
참조) :
- use_locking :
True
이면 var 및 accum 텐서의 업데이트는 잠금으로 보호됩니다. 그렇지 않으면 동작이 정의되지 않지만 경합이 적을 수 있습니다.
보고:
- 생성 된
Operation
생성자와 소멸자 | |
---|---|
ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices) | |
ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyAdagrad::Attrs & attrs) |
공용 속성 | |
---|---|
operation |
공공 기능 | |
---|---|
operator::tensorflow::Operation () const |
공개 정적 함수 | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
구조체 | |
---|---|
tensorflow :: ops :: ResourceSparseApplyAdagrad :: Attrs | ResourceSparseApplyAdagrad에 대한 선택적 속성 설정자. |
공용 속성
조작
Operation operation
공공 기능
ResourceSparseApplyAdagrad
ResourceSparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices )
ResourceSparseApplyAdagrad
ResourceSparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices, const ResourceSparseApplyAdagrad::Attrs & attrs )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const
공개 정적 함수
업데이트 슬롯
Attrs UpdateSlots( bool x )
사용 잠금
Attrs UseLocking( bool x )