Method usingArray
val usingArray: 'T [] -> Tensor<'T>
Creates a one-dimensional tensor referencing the specified data.
Declaration
val usingArray: data:'T [] -> Tensor<'T>
Parameters
| Type | Name | Description |
|---|---|---|
| 'T [] | data | The data array to use. |
Returns
| Type | Description |
|---|---|
| Tensor<'T> | A tensor using the array |
Type Parameters
| Name | Description |
|---|---|
| 'T | The type of the data. |
Remarks
The data array is referenced, not copied. Thus changing the tensor modifies the specified data array and vice versa.