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