Method ofList
val ofList: 'T list -> Tensor<'T>
Creates a one-dimensional tensor from the specified list.
Declaration
val ofList: data:'T list -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
'T list | data | The data to fill the tensor with. |
Returns
Type | Description |
---|---|
Tensor<'T> | A tensor containing values from the specifed list. |
Type Parameters
Name | Description |
---|---|
'T | The type of the data. |