Property Shape
property Shape: int64 list
Shape of this tensor.
Declaration
property Shape: int64 list with get
Property Value
Type | Description |
---|---|
int64 list | Shape. |
Remarks
Provides the shape of this tensor.
A tensor is empty of any dimension has size zero.
A zero-dimensional tensor has an empty shape and contains one element.
Examples
let a = HostTensor.ofList [[1.0; 2.0; 5.0]
[3.0; 4.0; 6.0]]
let c = a.Shape // [2L; 3L]