Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::
ops::
Range
#include <math_ops.h>
Creates a sequence of numbers.
Summary
This operation creates a sequence of numbers that begins at
start
and extends by increments of
delta
up to but not including
limit
.
For example:
# 'start' is 3
# 'limit' is 18
# 'delta' is 3
tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
Args:
-
scope: A
Scope
object
-
start: 0-D (scalar). First entry in the sequence.
-
limit: 0-D (scalar). Upper limit of sequence, exclusive.
-
delta: 0-D (scalar). Optional. Default is 1. Number that increments
start
.
Returns:
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-05-14 UTC.
[null,null,["Last updated 2021-05-14 UTC."],[],[],null,["# tensorflow::ops::Range Class Reference\n\ntensorflow::\nops::\nRange\n========================\n\n`\n#include \u003cmath_ops.h\u003e\n`\n\n\nCreates a sequence of numbers.\n\nSummary\n-------\n\n\nThis operation creates a sequence of numbers that begins at\n`\nstart\n`\nand extends by increments of\n`\ndelta\n`\nup to but not including\n`\nlimit\n`\n.\n\n\nFor example:\n\n\n```text\n# 'start' is 3\n# 'limit' is 18\n# 'delta' is 3\ntf.range(start, limit, delta) ==\u003e [3, 6, 9, 12, 15]\n```\n\n\u003cbr /\u003e\n\n\nArgs:\n\n- scope: A [Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- start: 0-D (scalar). First entry in the sequence.\n- limit: 0-D (scalar). Upper limit of sequence, exclusive.\n- delta: 0-D (scalar). Optional. Default is 1. Number that increments `\n start\n ` .\n\n\u003cbr /\u003e\n\n\nReturns:\n\n- `\n `[Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)`\n ` : 1-D.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| ` `[Range](#classtensorflow_1_1ops_1_1_range_1ac89f10cd7a02658f009b001297b9e39d)` (const :: `[tensorflow::Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` start, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` limit, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` delta) ` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| ` `[operation](#classtensorflow_1_1ops_1_1_range_1a6bb875b501983ede4f2c3eb9cbfe30ee)` ` | ` `[Operation](/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)` ` |\n| ` `[output](#classtensorflow_1_1ops_1_1_range_1a408459e47f930b28694661838962ba5e)` ` | ` :: `[tensorflow::Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)` ` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------|--------------------------|\n| ` `[node](#classtensorflow_1_1ops_1_1_range_1ac9b5f6727feb82935fd0bbfb3cebcbef)` () const ` | ` ::tensorflow::Node * ` |\n| ` `[operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_range_1a810a3ce642e4e22f25f72fffbfc12d3c)` () const ` | ` ` |\n| ` `[operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_range_1ae4e7344666bfe134a81298ac5d7d86cd)` () const ` | ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### Range\n\n```gdscript\n Range(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input start,\n ::tensorflow::Input limit,\n ::tensorflow::Input delta\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]