[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.guarantee_const\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/array_ops.py#L6935-L6951) |\n\nPromise to the TF runtime that the input tensor is a constant. (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.guarantee_const`](https://www.tensorflow.org/api_docs/python/tf/guarantee_const)\n\n\u003cbr /\u003e\n\n tf.guarantee_const(\n input, name=None\n )\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Not for public use.\n\nThe runtime is then free to make optimizations based on this.\n\nReturns the input tensor without modification.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------|----------------------------|\n| `input` | A `Tensor`. |\n| `name` | A name for this operation. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor`. Has the same dtype as `input`. ||\n\n\u003cbr /\u003e"]]