Skip to main content

auto_device

Function auto_device 

Source
pub fn auto_device() -> Result<Device>
Expand description

Returns the best available device.

Always returns the default Flex (CPU) device. To use CUDA, construct a MultiscreenModel with CudaAutodiffBackend directly.