aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md')
-rw-r--r--tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md
new file mode 100644
index 0000000000..da86e52f07
--- /dev/null
+++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.count_up_to.md
@@ -0,0 +1,23 @@
+### `tf.count_up_to(ref, limit, name=None)` {#count_up_to}
+
+Increments 'ref' until it reaches 'limit'.
+
+This operation outputs "ref" after the update is done. This makes it
+easier to chain operations that need to use the updated value.
+
+##### Args:
+
+
+* <b>`ref`</b>: A mutable `Tensor`. Must be one of the following types: `int32`, `int64`.
+ Should be from a scalar `Variable` node.
+* <b>`limit`</b>: An `int`.
+ If incrementing ref would bring it above limit, instead generates an
+ 'OutOfRange' error.
+* <b>`name`</b>: 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.
+