release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device (算子)

名称

release_compute_deviceT_release_compute_deviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device — 关闭计算设备。

警告

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device must not be used in HDevelop!

签名

release_compute_device( : : DeviceHandle : )

Herror T_release_compute_device(const Htuple DeviceHandle)

void ReleaseComputeDevice(const HTuple& DeviceHandle)

void HComputeDevice::ReleaseComputeDevice() const

static void HOperatorSet.ReleaseComputeDevice(HTuple deviceHandle)

void HComputeDevice.ReleaseComputeDevice()

def release_compute_device(device_handle: HHandle) -> None

描述

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device closes a compute devices for the current HALCON thread and frees all resources associated to DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle. release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device is solely for the purpose of freeing all device related resources before unloading the HALCON library, if the library was loaded using a mechanism like LoadLibrary or dlopen. In all other cases you must not use release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device!

执行信息

参数

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle (输入控制)  compute_device HComputeDevice, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

计算设备句柄。

结果

release_compute_devicerelease_compute_deviceReleaseComputeDeviceReleaseComputeDeviceReleaseComputeDevicerelease_compute_device 返回值 2 ( H_MSG_TRUE) if DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle was closed successfully.否则将抛出异常。

另见

release_all_compute_devicesrelease_all_compute_devicesReleaseAllComputeDevicesReleaseAllComputeDevicesReleaseAllComputeDevicesrelease_all_compute_devices, deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_device, deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesdeactivate_all_compute_devices

模块

基础