transpose

tch_t(x)

Arguments

x

tensor object

Examples

x <- tensor(matrix(runif(6), nrow = 3)) tch_t(x)
#> tensor #> 0.6721 0.8198 0.9146 #> 0.6900 0.4920 0.6469 #> [ Variable[CPUFloatType]{2,3} ]