# NOT RUN {
if (torch_is_installed()) {
a = c(1, 2, 3)
tensor_a = torch_tensor(a)
torch_combinations(tensor_a)
torch_combinations(tensor_a, r=3)
torch_combinations(tensor_a, with_replacement=TRUE)
}
# }
Run the code above in your browser using DataLab