Method toList
val toList: Tensor<'T> -> 'T list
Creates a list from a one-dimensional tensor.
Declaration
val toList: a:Tensor<'T> -> 'T list
Parameters
Type | Name | Description |
---|---|---|
Tensor<'T> | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
'T list | A list containing the values from the tensor. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |
Remarks
The data is copied.