library(torch). # a 1d vector of length 2. t <- torch_tensor(c(1, 2)). t. # also 1d, but of type boolean. t <- torch_tensor(c(TRUE, FALSE)).
確定! 回上一頁