tf.raw_ops.LinSpace
Generates values in an interval.
tf.raw_ops.LinSpace(
start, stop, num, name=None
)
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]
Args |
start
|
A Tensor . Must be one of the following types: bfloat16 , half , float32 , float64 .
0-D tensor. First entry in the range.
|
stop
|
A Tensor . Must have the same type as start .
0-D tensor. Last entry in the range.
|
num
|
A Tensor . Must be one of the following types: int32 , int64 .
0-D tensor. Number of values to generate.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor . Has the same type as start .
|
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 2024-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[]]