W3cubDocs

/TensorFlow 2.9

tf.guarantee_const

Promise to the TF runtime that the input tensor is a constant. (deprecated)

The runtime is then free to make optimizations based on this.

Returns the input tensor without modification.

Args
input A Tensor.
name A name for this operation.
Returns
A Tensor. Has the same dtype as input.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/guarantee_const