is_half_available

Function is_half_available 

Source
pub fn is_half_available(device: i32) -> bool
Expand description

Check if a device has half support

§Parameters

  • device is the device for which half precision support is checked for

§Return Values

True if device device has half support, False otherwise.