R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/gen-namespace.R
torch_fliplr.Rd
Fliplr
torch_fliplr(self)
self | (Tensor) Must be at least 2-dimensional. |
---|
Equivalent to input[,-1]
. Requires the array to be at least 2-D.
Flip array in the left/right direction, returning a new tensor.
Flip the entries in each row in the left/right direction. Columns are preserved, but appear in a different order than before.
#> torch_tensor #> 1 0 #> 3 2 #> [ CPUFloatType{2,2} ]