コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::アキュムレータApplyGradient
#include <data_flow_ops.h>
指定されたアキュムレータに勾配を適用します。
まとめ
local_step がアキュムレータの global_step より小さい場合は加算されません。
引数:
- スコープ:スコープオブジェクト
- handle: アキュムレータへのハンドル。
- local_step: 勾配が計算された local_step 値。
- gradient: 累積される勾配のテンソル。
戻り値:
パブリック属性
公共機能
演算子::tensorflow::オペレーション
operator::tensorflow::Operation() const
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# tensorflow::ops::AccumulatorApplyGradient Class Reference\n\ntensorflow::ops::AccumulatorApplyGradient\n=========================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nApplies a gradient to a given accumulator.\n\nSummary\n-------\n\nDoes not add if local_step is lesser than the accumulator's global_step.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a accumulator.\n- local_step: The local_step value at which the gradient was computed.\n- gradient: A tensor of the gradient to be accumulated.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AccumulatorApplyGradient](#classtensorflow_1_1ops_1_1_accumulator_apply_gradient_1a177bc2345d06d8be4344ceb0ec33fcc5)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` local_step, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` gradient)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_accumulator_apply_gradient_1a9c638e54d2c66a66671f0b83a4e2e02e) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_accumulator_apply_gradient_1ab611049c1d39230c4afa89d80dbddb57)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### AccumulatorApplyGradient\n\n```gdscript\n AccumulatorApplyGradient(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input local_step,\n ::tensorflow::Input gradient\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]