The next version of torch will change the behavior of torch_arange, it will now include the last element, making it much more consistent with R's seq. This PR changes all occurrences of torch_arange to make it work with the soon to be released torch version.
The next version of torch will change the behavior of
torch_arange
, it will now include the last element, making it much more consistent with R'sseq
. This PR changes all occurrences oftorch_arange
to make it work with the soon to be released torch version.See also https://github.com/mlverse/torch/pull/506