tvm_tirx.target.device_from_target#
- tvm_tirx.target.device_from_target(target, index=None)#
Construct a runtime device from a compilation target.
- Parameters:
target (str or dict or tvm_tirx.target.Target) – The compilation target whose device type should be used.
index (int, optional) – The integer device index.
- Returns:
dev (Device) – The created device.