Method DetachFromDevice
DetachFromDevice(bool)
Synchronizes the tensor data with the data on the device, then remove the tensor from the device.
Declaration
public ITensorData DetachFromDevice(bool disposeDeviceData = true)
Parameters
Type | Name | Description |
---|---|---|
bool | disposeDeviceData | Whether to free the space on device after detaching. |
Returns
Type | Description |
---|---|
ITensorData | The detached tensor data. |