컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: SparseConditionalAccumulator
#include <data_flow_ops.h>
희소 기울기를 집계하기 위한 조건부 누산기입니다.
요약
누산기는 누산기에 알려진 가장 최근의 global_step보다 크거나 같은 local_step으로 표시된 기울기를 허용합니다. 충분한 기울기가 누적된 경우 평균은 누산기에서 추출될 수 있습니다. 평균을 추출하면 집계가 자동으로 0으로 재설정되고 누산기에 의해 기록된 global_step이 증가합니다.
인수:
- 범위: 범위 개체
- dtype: 누적되는 값의 유형입니다.
- 모양: 값의 모양입니다.
선택적 속성( Attrs
참조):
- 컨테이너: 비어 있지 않은 경우 이 누산기는 지정된 컨테이너에 배치됩니다. 그렇지 않으면 기본 컨테이너가 사용됩니다.
- shared_name: 비어 있지 않은 경우 이 누산기는 여러 세션에서 지정된 이름으로 공유됩니다.
보고:
공개 속성
공공 기능
SparseConditionalAccumulator
SparseConditionalAccumulator(
const ::tensorflow::Scope & scope,
DataType dtype,
PartialTensorShape shape
)
마디
::tensorflow::Node * node() const
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
컨테이너
Attrs Container(
StringPiece x
)
감소 유형
Attrs ReductionType(
StringPiece x
)
공유 이름
Attrs SharedName(
StringPiece x
)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::SparseConditionalAccumulator Class Reference\n\ntensorflow::ops::SparseConditionalAccumulator\n=============================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nA conditional accumulator for aggregating sparse gradients.\n\nSummary\n-------\n\nThe accumulator accepts gradients marked with local_step greater or equal to the most recent global_step known to the accumulator. The average can be extracted from the accumulator, provided sufficient gradients have been accumulated. Extracting the average automatically resets the aggregate to 0, and increments the global_step recorded by the accumulator.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- dtype: The type of the value being accumulated.\n- shape: The shape of the values.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs#structtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1_1_attrs)):\n\n- container: If non-empty, this accumulator is placed in the given container. Otherwise, a default container is used.\n- shared_name: If non-empty, this accumulator will be shared under the given name across multiple sessions.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The handle to the accumulator.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseConditionalAccumulator](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1a4133d47c6e15c4a9aeefec18ecdcec8e)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, DataType dtype, PartialTensorShape shape)` ||\n| [SparseConditionalAccumulator](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1accae7d9bc21410b017b23f3274a9bb5c)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, DataType dtype, PartialTensorShape shape, const `[SparseConditionalAccumulator::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs#structtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [handle](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1ae254a334398940972605109db3c7954d) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1ad8d5c853cb09f54c21878ddca9b9f600) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1aba524ddfd366dcef3f9dd99bcb7b5c7d)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1a5e355e5910304b5edd44ef6a51abd472)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1a39a61597615354b5d7b73dd9a23cdc8b)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Container](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1a1600abd8fa3fea5d2d36ccd67de401c7)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs#structtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1_1_attrs) |\n| [ReductionType](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1a280e4c1312be92c2d72875d9cbb6bb80)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs#structtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1aa7defbdbb0837b0af6dc7fb714603e50)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs#structtensorflow_1_1ops_1_1_sparse_conditional_accumulator_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::SparseConditionalAccumulator::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/sparse-conditional-accumulator/attrs) | Optional attribute setters for [SparseConditionalAccumulator](/versions/r2.1/api_docs/cc/class/tensorflow/ops/sparse-conditional-accumulator#classtensorflow_1_1ops_1_1_sparse_conditional_accumulator). |\n\nPublic attributes\n-----------------\n\n### handle\n\n```text\n::tensorflow::Output handle\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### SparseConditionalAccumulator\n\n```gdscript\n SparseConditionalAccumulator(\n const ::tensorflow::Scope & scope,\n DataType dtype,\n PartialTensorShape shape\n)\n``` \n\n### SparseConditionalAccumulator\n\n```gdscript\n SparseConditionalAccumulator(\n const ::tensorflow::Scope & scope,\n DataType dtype,\n PartialTensorShape shape,\n const SparseConditionalAccumulator::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### ReductionType\n\n```text\nAttrs ReductionType(\n StringPiece x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]