Increments 'ref' until it reaches 'limit'. (deprecated)
tf.compat.v1.count_up_to(ref,limit,name=None)
Args
ref
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 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.count_up_to\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/ops/state_ops.py#L359-L380) |\n\nIncrements 'ref' until it reaches 'limit'. (deprecated) \n\n tf.compat.v1.count_up_to(\n ref, limit, name=None\n )\n\n| **Deprecated:** 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"]]