R/tensor.R
tch_as_strided.Rd
TODO: create better docs.
tch_as_strided(x, size, stride, storage_offset = NULL)
tensor object
size
stride
(optional) storage_offset
x <- tensor(array(runif(8), dim = c(2,2,2))) tch_as_strided(x, 0, 1)#> tensor #> [ Variable[CPUFloatType]{0} ]