Skip to main content

resolve_device

Function resolve_device 

Source
pub fn resolve_device(choice: DeviceChoice) -> Result<Device, CodecError>
Expand description

Resolves a Candle [Device] matching the requested DeviceChoice.

ยงErrors

Returns CodecError::InvalidConfig if a specific accelerator was requested without its Cargo feature compiled in or without available hardware.