tvm_tirx::runtime

Function get_device_attr

Source
pub fn get_device_attr(device: DLDevice, name: &str) -> Result<Any>
Expand description

The attribute name of device, such as exist or max_threads_per_block; None when the device does not report it (runtime.GetDeviceAttr).