TODO: create better docs.

tch_as_strided(x, size, stride, storage_offset = NULL)

Arguments

x

tensor object

size

size

stride

stride

storage_offset

(optional) storage_offset

Examples

x <- tensor(array(runif(8), dim = c(2,2,2))) tch_as_strided(x, 0, 1)
#> tensor #> [ Variable[CPUFloatType]{0} ]