Method Pin
Pin(Tensor, bool)
Moves the tensor into GPU memory on the GPUCompute backend device.
Declaration
public static ComputeTensorData Pin(Tensor X, bool clearOnInit = false)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The tensor to move to the compute backend. |
bool | clearOnInit | Whether to zero the data on pinning. The default value is |
Returns
Type | Description |
---|---|
ComputeTensorData | The pinned |