Method ofArray
val ofArray: 'T [] -> Tensor<'T>
Creates a one-dimensional tensor copying the specified data.
Declaration
val ofArray: data:'T [] -> Tensor<'T>
Parameters
| Type | Name | Description |
|---|---|---|
| 'T [] | data | The data array to use. |
Returns
| Type | Description |
|---|---|
| Tensor<'T> | A tensor filled with the values from |
Type Parameters
| Name | Description |
|---|---|
| 'T | The type of the data. |
Remarks
The data is copied.