Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::ApplyGradientDescent
#include <training_ops.h>
Update '*var' by subtracting 'alpha' * 'delta' from it.
Summary
Args:
- scope: A Scope object
- var: Should be from a Variable().
- alpha: Scaling factor. Must be a scalar.
- delta: The change.
Optional attributes (see Attrs
):
- use_locking: If
True
, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
Returns:
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
UseLocking
Attrs UseLocking(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::ApplyGradientDescent Class Reference\n\ntensorflow::ops::ApplyGradientDescent\n=====================================\n\n`#include \u003ctraining_ops.h\u003e`\n\nUpdate '\\*var' by subtracting 'alpha' \\* 'delta' from it.\n\nSummary\n-------\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/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/r2.14/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_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- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Same as \"var\".\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ApplyGradientDescent](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a02b0cff378acff6764175510a30da2de)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` var, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` alpha, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` delta)` ||\n| [ApplyGradientDescent](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a0bee68dd467ecfbc96a8db3f401c8fb7)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` var, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` alpha, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` delta, const `[ApplyGradientDescent::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_apply_gradient_descent_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1ae5abbeb9d43a7b58a2cf4d2c444f53fe) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [out](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1ad7a25f5c2c7a6e4ca3b2222a1c45777d) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a88b00c9b817da89da01dfaabd1750195)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a972466fa3ea4e78b0abae2469a835a5e)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a393c4dc9ad66b888ccf8beb68f594751)`() const ` | |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [UseLocking](#classtensorflow_1_1ops_1_1_apply_gradient_descent_1a3751c29f150babe6104c53aec88f5419)`(bool x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs#structtensorflow_1_1ops_1_1_apply_gradient_descent_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::ApplyGradientDescent::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/apply-gradient-descent/attrs) | Optional attribute setters for [ApplyGradientDescent](/versions/r2.14/api_docs/cc/class/tensorflow/ops/apply-gradient-descent#classtensorflow_1_1ops_1_1_apply_gradient_descent). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### out\n\n```text\n::tensorflow::Output out\n``` \n\nPublic functions\n----------------\n\n### ApplyGradientDescent\n\n```gdscript\n ApplyGradientDescent(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input var,\n ::tensorflow::Input alpha,\n ::tensorflow::Input delta\n)\n``` \n\n### ApplyGradientDescent\n\n```gdscript\n ApplyGradientDescent(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input var,\n ::tensorflow::Input alpha,\n ::tensorflow::Input delta,\n const ApplyGradientDescent::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### UseLocking\n\n```text\nAttrs UseLocking(\n bool x\n)\n```"]]