텐서플로우:: 작전:: ResourceApplyKeras모멘텀

#include <training_ops.h>

모멘텀 체계에 따라 '*var'를 업데이트합니다.

요약

use_nesterov = True로 설정하십시오.

Nesterov 추진력을 사용하고 싶습니다.

누적 = 누적 * 운동량 - lr * grad var += 누적

인수:

  • 범위: 범위 개체
  • var: Variable()에서 가져와야 합니다.
  • accum: Variable()에서 가져와야 합니다.
  • lr: 스케일링 팩터. 스칼라여야 합니다.
  • grad: 그라데이션입니다.
  • 기세: 기세. 스칼라여야 합니다.

선택적 속성( Attrs 참조):

  • use_locking: True 인 경우 var 및 accum 텐서 업데이트는 잠금으로 보호됩니다. 그렇지 않으면 동작이 정의되지 않지만 경합이 덜 나타날 수 있습니다.
  • use_nesterov: True 인 경우, Compute grad에 전달된 텐서는 var + Momentum * Accum이 됩니다. 따라서 결국 얻는 var는 실제로 var + Momentum * Accum입니다.

보고:

생성자와 소멸자

ResourceApplyKerasMomentum (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input momentum)
ResourceApplyKerasMomentum (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input momentum, const ResourceApplyKerasMomentum::Attrs & attrs)

공개 속성

operation

공공 기능

operator::tensorflow::Operation () const

공개 정적 함수

UseLocking (bool x)
UseNesterov (bool x)

구조체

텐서플로우:: ops:: ResourceApplyKerasMomentum:: Attrs

ResourceApplyKerasMomentum 에 대한 선택적 속성 설정자입니다.

공개 속성

작업

Operation operation

공공 기능

ResourceApplyKeras모멘텀

 ResourceApplyKerasMomentum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad,
  ::tensorflow::Input momentum
)

ResourceApplyKeras모멘텀

 ResourceApplyKerasMomentum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad,
  ::tensorflow::Input momentum,
  const ResourceApplyKerasMomentum::Attrs & attrs
)

연산자::텐서플로우::작업

 operator::tensorflow::Operation() const 

공개 정적 함수

사용잠금

Attrs UseLocking(
  bool x
)

사용Nesterov

Attrs UseNesterov(
  bool x
)