Method toArray
val toArray: Tensor<'T> -> 'T []
Creates an array from a one-dimensional tensor.
Declaration
val toArray: ary:Tensor<'T> -> 'T []
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | ary |
Returns
Type | Description |
---|---|
'T [] | An array containing the values from the tensor. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |
Remarks
The data is copied.