tensorflow::ops::LinSpace

#include <math_ops.h>

Generates values in an interval.

Summary

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:

  • scope: A Scope object
  • start: 0-D tensor. First entry in the range.
  • stop: 0-D tensor. Last entry in the range.
  • num: 0-D tensor. Number of values to generate.

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
operation
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

LinSpace

 LinSpace(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input start,
  ::tensorflow::Input stop,
  ::tensorflow::Input num
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2020 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/versions/r1.15/api_docs/cc/class/tensorflow/ops/lin-space