dim-methods: Tensor dim method

Description Usage Arguments Value Note Author(s)

Description

Retrieve dimension of object

Usage

1
2
## S3 method for class 'Tensor'
dim(x)

Arguments

x

A Tensor object

Value

A length 2 vector of the number of rows and columns respectively.

Note

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.

Author(s)

Charles Determan Jr.


cdeterman/lazytensor documentation built on May 28, 2019, 7:15 p.m.