LinSpace
tensorflow C++ API
Generates values in an interval.
Summary
A sequence ofnum
evenly-spaced values are generated beginning atstart
. Ifnum > 1
, the values in the sequence increase bystop - start / num - 1
, so that the last one is exactlystop
.
For example:
``` tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0] ```
Arguments:
- scope: A Scope object
- start: First entry in the range.
- stop: Last entry in the range.
- num: Number of values to generate.
Returns:
Output
: 1-D. The generated value
Constructor
- LinSpace(const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input stop, ::tensorflow::Input num).
Public attributes
- tensorflow::Output output.
LinSpace block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_math.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.).
- Input start:connect Input node.
- Input stop:connect Input node.
- Input num:connect Input node.
Return:
- Output output: Output object of LinSpace class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.