Description Usage Arguments Value Examples
Get the dimensions of a tensor displaying it as a vector.
1 2 | ## S3 method for class 'torch.Tensor'
dim(x)
|
x |
tensor |
a vector of integers with the dimensions of the tensor
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.