Method zeros
val zeros: int64 list -> Tensor<'T>
Creates a new tensor filled with zeros (0).
Declaration
val zeros: shape:int64 list -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
int64 list | shape | The shape of the new tensor. |
Returns
Type | Description |
---|---|
Tensor<'T> | The new tensor. |
Type Parameters
Name | Description |
---|---|
'T | The data type of the new tensor. |