W3cubDocs

/TensorFlow C++

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]

Arguments:

  • 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:

Constructors and Destructors
Range(const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input limit, ::tensorflow::Input delta)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public attributes

output

::tensorflow::Output output

Public functions

Range

 Range(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input start,
  ::tensorflow::Input limit,
  ::tensorflow::Input delta
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/range.html