Property NDims
property NDims: int
Dimensionality of this tensor.
Declaration
property NDims: int with get
Property Value
Type | Description |
---|---|
int | Number of dimensions. |
Remarks
Provides the number of dimensions of this tensor.
A zero-dimensional tensor contains one element, i.e. it is a scalar.
Examples
let a = HostTensor.ofList [[1.0; 2.0; 5.0]
[3.0; 4.0; 6.0]]
let c = a.NDims // 2