pub fn get_device_attr(device: DLDevice, name: &str) -> Result<Any>
The attribute name of device, such as exist or max_threads_per_block; None when the device does not report it (runtime.GetDeviceAttr).
name
device
exist
max_threads_per_block
None
runtime.GetDeviceAttr