Create a Tensor of evenly-spaced values in a given interval.
// create a tensor of even values starting with 0: `[0,2,4,8]` const t = sm.arange(0, 10, 2)
A new 1D Tensor containing the user defined interval.
The start of the interval (inclusive)
The end of the interval (exclusive)
An optional argument to stride the interval
Generated using TypeDoc
Create a Tensor of evenly-spaced values in a given interval.
Example
Returns
A new 1D Tensor containing the user defined interval.