#include <math_ops.h>
Generates values in an interval.
A sequence of num
evenly-spaced values are generated beginning at start
. If num > 1
, the values in the sequence increase by stop - start / num - 1
, so that the last one is exactly stop
.
For example:
tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0]
Arguments:
Returns:
Output
: 1-D. The generated values. Constructors and Destructors | |
---|---|
LinSpace(const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input stop, ::tensorflow::Input num) |
Public attributes | |
---|---|
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
::tensorflow::Output output
LinSpace( const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input stop, ::tensorflow::Input num )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
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/lin-space.html