Method PinToDevice
PinToDevice(Tensor, bool)
Prepares Tensor for use with CPU backend.
Declaration
public override Tensor PinToDevice(Tensor X, bool clearOnInit = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | X |
|
| bool | clearOnInit | Whether to copy tensor data to CPU backend. |
Returns
| Type | Description |
|---|---|
| Tensor |
|