Skip to main content

get_device

Function get_device 

Source
pub fn get_device() -> Device
Expand description

Get best available device (CUDA if available, otherwise CPU)