Stay organized with collections
Save and categorize content based on your preferences.
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.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# State Ops\n=========\n\nSummary\n-------\n\n| ### Classes ||\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Assign](/versions/r1.15/api_docs/cc/class/tensorflow/ops/assign) | Update 'ref' by assigning 'value' to it. |\n| [tensorflow::ops::AssignAdd](/versions/r1.15/api_docs/cc/class/tensorflow/ops/assign-add) | Update 'ref' by adding 'value' to it. |\n| [tensorflow::ops::AssignSub](/versions/r1.15/api_docs/cc/class/tensorflow/ops/assign-sub) | Update 'ref' by subtracting 'value' from it. |\n| [tensorflow::ops::CountUpTo](/versions/r1.15/api_docs/cc/class/tensorflow/ops/count-up-to) | Increments 'ref' until it reaches 'limit'. |\n| [tensorflow::ops::DestroyTemporaryVariable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/destroy-temporary-variable) | Destroys the temporary variable and returns its final value. |\n| [tensorflow::ops::IsVariableInitialized](/versions/r1.15/api_docs/cc/class/tensorflow/ops/is-variable-initialized) | Checks whether a tensor has been initialized. |\n| [tensorflow::ops::ResourceCountUpTo](/versions/r1.15/api_docs/cc/class/tensorflow/ops/resource-count-up-to) | Increments variable pointed to by 'resource' until it reaches 'limit'. |\n| [tensorflow::ops::ResourceScatterNdAdd](/versions/r1.15/api_docs/cc/class/tensorflow/ops/resource-scatter-nd-add) | Applies sparse addition to individual values or slices in a [Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable). |\n| [tensorflow::ops::ResourceScatterNdSub](/versions/r1.15/api_docs/cc/class/tensorflow/ops/resource-scatter-nd-sub) | Applies sparse subtraction to individual values or slices in a [Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable). |\n| [tensorflow::ops::ResourceScatterNdUpdate](/versions/r1.15/api_docs/cc/class/tensorflow/ops/resource-scatter-nd-update) | Applies sparse `updates` to individual values or slices within a given. |\n| [tensorflow::ops::ScatterAdd](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-add) | Adds sparse updates to a variable reference. |\n| [tensorflow::ops::ScatterDiv](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-div) | Divides a variable reference by sparse updates. |\n| [tensorflow::ops::ScatterMax](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-max) | Reduces sparse updates into a variable reference using the `max` operation. |\n| [tensorflow::ops::ScatterMin](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-min) | Reduces sparse updates into a variable reference using the `min` operation. |\n| [tensorflow::ops::ScatterMul](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-mul) | Multiplies sparse updates into a variable reference. |\n| [tensorflow::ops::ScatterNdAdd](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-nd-add) | Applies sparse addition to individual values or slices in a [Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable). |\n| [tensorflow::ops::ScatterNdSub](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-nd-sub) | Applies sparse subtraction to individual values or slices in a [Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable). |\n| [tensorflow::ops::ScatterNdUpdate](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-nd-update) | Applies sparse `updates` to individual values or slices within a given. |\n| [tensorflow::ops::ScatterSub](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-sub) | Subtracts sparse updates to a variable reference. |\n| [tensorflow::ops::ScatterUpdate](/versions/r1.15/api_docs/cc/class/tensorflow/ops/scatter-update) | Applies sparse updates to a variable reference. |\n| [tensorflow::ops::TemporaryVariable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/temporary-variable) | Returns a tensor that may be mutated, but only persists within a single step. |\n| [tensorflow::ops::Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable) | Holds state in the form of a tensor that persists across steps. |"]]