Method ones
val ones: int64 list -> Tensor<'T>
Creates a new tensor filled with ones (1).
Declaration
val ones: 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. |