Method PinToDevice
PinToDevice(Tensor, bool)
Pins and returns a tensor using this backend.
Declaration
Tensor PinToDevice(Tensor X, bool clearOnInit = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | X | The input tensor. |
| bool | clearOnInit | Whether to initialize the backend data. The default value is |
Returns
| Type | Description |
|---|---|
| Tensor | The pinned input tensor. |