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