功能
Generates values in an interval.
参数
tf.linspace(
start,
stop,
num, # umber of values to generate.
name=None
)
用例
tf.linspace(10.0, 12.0, 1, name="linspace") => [ 10.0]
tf.linspace(10.0, 12.0, 2, name="linspace") => [ 10.0 12.0]
tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0]
tf.linspace(10.0, 12.0, 4, name="linspace") => [10. 10.666667 11.333333 12. ]