Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs
#include <training_ops.h>
Optional attribute setters for ResourceSparseApplyProximalGradientDescent.
Summary
Public functions
|
UseLocking(bool x)
|
If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
|
Public attributes
use_locking_
bool tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs::use_locking_ = false
Public functions
UseLocking
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs::UseLocking(
bool x
)
If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
Defaults to false
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::ResourceSparseApplyProximalGradientDescent::Attrs Struct Reference\n\ntensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs\n==================================================================\n\n`#include \u003ctraining_ops.h\u003e`\n\nOptional attribute setters for [ResourceSparseApplyProximalGradientDescent](/versions/r2.14/api_docs/cc/class/tensorflow/ops/resource-sparse-apply-proximal-gradient-descent#classtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_gradient_descent).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [use_locking_](#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_gradient_descent_1_1_attrs_1a303c6b7abf0bfa5f4fc2e71b2fa76a4b)` = false` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [UseLocking](#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_gradient_descent_1_1_attrs_1aef913531b93329777337d17a7a4f122c)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/resource-sparse-apply-proximal-gradient-descent/attrs#structtensorflow_1_1ops_1_1_resource_sparse_apply_proximal_gradient_descent_1_1_attrs) If True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention. |\n\nPublic attributes\n-----------------\n\n### use_locking_\n\n```scdoc\nbool tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs::use_locking_ = false\n``` \n\nPublic functions\n----------------\n\n### UseLocking\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs::UseLocking(\n bool x\n)\n``` \nIf True, the subtraction will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.\n\nDefaults to false"]]