tensorflow :: ops :: AccumulatorTakeGradient

#include <data_flow_ops.h>

주어진 ConditionalAccumulator 에서 평균 기울기를 추출합니다.

요약

충분한 (즉, num_required 이상) 그래디언트가 누적 될 때까지 op 블록입니다. 누산기가 이미 num_required 그래디언트보다 더 많이 집계 된 경우 누적 된 그래디언트의 평균을 반환합니다. 또한 누적기에 기록 된 global_step을 1 씩 자동으로 증가시키고 집계를 0으로 재설정합니다.

인수 :

  • 범위 : 범위 개체
  • 핸들 : 누산기에 대한 핸들입니다.
  • num_required : 집계를 반환하기 전에 필요한 그래디언트 수입니다.
  • dtype : 누적 된 그라디언트의 데이터 유형입니다. 누산기 유형과 일치해야합니다.

보고:

  • Output : 누적 된 기울기의 평균입니다.

생성자와 소멸자

AccumulatorTakeGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_required, DataType dtype)

공용 속성

average
operation

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공용 속성

평균

::tensorflow::Output average

조작

Operation operation

공공 기능

AccumulatorTakeGradient

 AccumulatorTakeGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input num_required,
  DataType dtype
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const