Description Usage Arguments Value Note Author(s)
Retrieve dimension of object
1 2 | ## S3 method for class 'Tensor'
dim(x)
|
x |
A Tensor object |
A length 2 vector of the number of rows and columns respectively.
This function returns the output shape of the tensor. If you wish
to guarantee the value is the initial shape of the Tensor you should
access the dimensions directly with x$shape
.
Charles Determan Jr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.