A Variable. Must be one of the following types: int32, int64.
Should be from a scalar Variable node.
limit
An int.
If incrementing ref would bring it above limit, instead generates an
'OutOfRange' error.
name
A name for the operation (optional).
Returns
A Tensor. Has the same type as ref.
A copy of the input before increment. If nothing else modifies the
input, the values produced will all be distinct.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.count_up_to\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/state_ops.py#L231-L252) |\n\nIncrements 'ref' until it reaches 'limit'. (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.count_up_to`](/api_docs/python/tf/compat/v1/count_up_to)\n\n\u003cbr /\u003e\n\n tf.count_up_to(\n ref, limit, name=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Prefer Dataset.range instead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------|------------------------------------------------------------------------------------------------------------|\n| `ref` | A Variable. Must be one of the following types: `int32`, `int64`. Should be from a scalar `Variable` node. |\n| `limit` | An `int`. If incrementing ref would bring it above limit, instead generates an 'OutOfRange' error. |\n| `name` | A name for the operation (optional). |\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 type as `ref`. A copy of the input before increment. If nothing else modifies the input, the values produced will all be distinct. ||\n\n\u003cbr /\u003e"]]