Is there an existing pytorch function to generate n equally spaced items starting from x with interval of k without having to specify the end?
Eg.
n = 5, x = 1, k = 0.1 -> [1.0, 1.1, 1.2, 1.3, 1.4]
n = 5, x = 1, k = 2 -> [1, 3, 5, 7, 9]
So the end is determined by the interval (k) and number of items (n)