텐서플로우:: 작전:: SparseAccumulatorTake그라디언트

#include <data_flow_ops.h>

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

요약

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

인수:

  • 범위: 범위 개체
  • 핸들: 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

공공 기능

SparseAccumulatorTake그라디언트

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