tvm_tirx.target.detect_target.detect_target_from_device

tvm_tirx.target.detect_target.detect_target_from_device#

tvm_tirx.target.detect_target.detect_target_from_device(dev)#

Detects Target associated with the given device. If the device does not exist, there will be an Error.

Parameters:

dev (Union[str, Device]) – The device to detect the target for. Supported device types are registered by backend hooks.

Returns:

target (Target) – The detected target.

Return type:

Target