جریان تنسور:: عملیات:: ResourceApplyGradientDescent
#include <training_ops.h>
«*var» را با کم کردن «alpha» * «delta» از آن بهروزرسانی کنید.
خلاصه
استدلال ها:
- scope: یک شی Scope
- var: باید از یک متغیر () باشد.
- آلفا: ضریب مقیاس. باید اسکالر باشد.
- دلتا: تغییر.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- use_locking: اگر
True
، تفریق با یک قفل محافظت می شود. در غیر این صورت رفتار تعریف نشده است، اما ممکن است اختلاف کمتری از خود نشان دهد.
برمی گرداند:
-
Operation
ایجاد شده
سازندگان و تخریب کنندگان | |
---|---|
ResourceApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta) | |
ResourceApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta, const ResourceApplyGradientDescent::Attrs & attrs) |
صفات عمومی | |
---|---|
operation |
توابع عمومی | |
---|---|
operator::tensorflow::Operation () const |
توابع استاتیک عمومی | |
---|---|
UseLocking (bool x) |
سازه ها | |
---|---|
tensorflow:: ops:: ResourceApplyGradientDescent:: Attrs | تنظیم کننده های ویژگی اختیاری برای ResourceApplyGradientDescent . |
صفات عمومی
عملیات
Operation operation
توابع عمومی
ResourceApplyGradientDescent
ResourceApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta )
ResourceApplyGradientDescent
ResourceApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ResourceApplyGradientDescent::Attrs & attrs )
عملگر::tensorflow::عملیات
operator::tensorflow::Operation() const
توابع استاتیک عمومی
استفاده از قفل
Attrs UseLocking( bool x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::ResourceApplyGradientDescent Class Reference\n\ntensorflow::ops::ResourceApplyGradientDescent\n=============================================\n\n`#include \u003ctraining_ops.h\u003e`\n\nUpdate '\\*var' by subtracting 'alpha' \\* 'delta' from it.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- var: Should be from a Variable().\n- alpha: Scaling factor. Must be a scalar.\n- delta: The change.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/resource-apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1_1_attrs)):\n\n- use_locking: If `True`, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.\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| [ResourceApplyGradientDescent](#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1ad2c03e2384a20f89b22a617a6bef1266)`(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)` var, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` alpha, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` delta)` ||\n| [ResourceApplyGradientDescent](#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1adaccd5611930bc42bc3813780e45ec68)`(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)` var, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` alpha, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` delta, const `[ResourceApplyGradientDescent::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/resource-apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1a0ed7094e3b62584bc00bd0a2de76737c) | [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_resource_apply_gradient_descent_1a063bfdd6045330eed2802d02a8a00c8e)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [UseLocking](#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1a48f17ade21c3f87c38fbfa29434ba55c)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/resource-apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_apply_gradient_descent_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::ResourceApplyGradientDescent::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/resource-apply-gradient-descent/attrs) | Optional attribute setters for [ResourceApplyGradientDescent](/versions/r1.15/api_docs/cc/class/tensorflow/ops/resource-apply-gradient-descent#classtensorflow_1_1ops_1_1_resource_apply_gradient_descent). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### ResourceApplyGradientDescent\n\n```gdscript\n ResourceApplyGradientDescent(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input var,\n ::tensorflow::Input alpha,\n ::tensorflow::Input delta\n)\n``` \n\n### ResourceApplyGradientDescent\n\n```gdscript\n ResourceApplyGradientDescent(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input var,\n ::tensorflow::Input alpha,\n ::tensorflow::Input delta,\n const ResourceApplyGradientDescent::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### UseLocking\n\n```text\nAttrs UseLocking(\n bool x\n)\n```"]]