Updates the accumulator with a new value for global_step.
tf.raw_ops.ResourceAccumulatorSetGlobalStep( handle, new_global_step, name=None )
Logs warning if the accumulator's value is already higher than new_global_step.
Args | |
---|---|
handle | A Tensor of type resource . The handle to an accumulator. |
new_global_step | A Tensor of type int64 . The new global_step value to set. |
name | A name for the operation (optional). |
Returns | |
---|---|
The created Operation. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/ResourceAccumulatorSetGlobalStep