linspace¶
- dragon.vm.tensorflow.- linspace(
 start,
 stop,
 num,
 dtype='int64',
 name=None,
 axis=0
 )[source]¶
- Generate evenly spaced values within intervals along the given axis. - Interval \([\text{start}, \text{stop})\) is determined for - numvalues:- x = tf.linspace(2, 4, num=3) # [2, 3, 4] - More intervals are accepted to generate N-d coordinates: - x = tf.linspace([1, 2], [3, 4], num=3, axis=0) # [[1, 2], [2, 3], [3, 4]] y = tf.linspace([1, 2], [3, 4], num=3, axis=1) # [[1, 2, 3], [2, 3, 4]] - Parameters:
- start (Union[number, Sequence[number]]) – The start(s) of interval.
- stop (Union[number, Sequence[number]]) – The stop(s) of interval.
- num (int) – The number of values to generate.
- dtype (str, optional, default='int64') – The optional data type.
- name (str, optional) – The operation name.
- axis (int, optional, default=0) – The axis to generate values.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
