텐서플로우:: ops:: SparseAccumulatorTakeGradient

#include <data_flow_ops.h>

SparseConditionalAccumulator 에서 평균 희소 기울기를 추출합니다.

요약

이 연산은 충분한(즉, num_required보다 많은) 기울기가 누적될 때까지 대기합니다. 누적기가 이미 num_required보다 많은 기울기를 누적한 경우, 누적된 기울기의 평균값을 반환합니다. 또한 누적기에 기록된 global_step 값을 자동으로 1 증가시키고, 누적값을 0으로 재설정합니다.

논거:

  • 범위: Scope 객체
  • 핸들: SparseConditionalAccumulator 에 대한 핸들입니다.
  • num_required: 집계 결과를 반환하기 전에 필요한 기울기 개수입니다.
  • dtype: 누적 기울기의 데이터 유형입니다. 누산기의 유형과 일치해야 합니다.

보고:

  • Output 인덱스: 누적된 희소 기울기의 평균에 대한 인덱스입니다.
  • Output : 누적된 희소 기울기의 평균값.
  • Output 형태: 누적된 희소 기울기의 평균 형태.

생성자와 소멸자

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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input num_required,
  DataType dtype
)