Method empty
val empty: int -> Tensor<'T>
Creates a new, empty tensor with the given number of dimensions.
Declaration
val empty: nDims:int -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
int | nDims | The number of dimensions of the new, empty tensor. |
Returns
Type | Description |
---|---|
Tensor<'T> | The new tensor. |
Type Parameters
Name | Description |
---|---|
'T | The data type of the new tensor. |