View source: R/gen-namespace.R
torch_unbind | R Documentation |
Unbind
torch_unbind(self, dim = 1L)
self |
(Tensor) the tensor to unbind |
dim |
(int) dimension to remove |
Removes a tensor dimension.
Returns a tuple of all slices along a given dimension, already without it.
if (torch_is_installed()) {
torch_unbind(torch_tensor(matrix(1:9, ncol = 3, byrow=TRUE)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.