y=lab.range(n,m) returns a tensor of size m-n+1x1 with integer values n to m.

> print(lab.range(2,5))

 2
 3
 4
 5
[torch.Tensor of dimension 4]