Skip to main content

resolve_device

Function resolve_device 

Source
pub fn resolve_device(
    graph: &Graph,
    hint: Option<Device>,
    policy: &DevicePolicy,
) -> Result<Device, String>
Expand description

Resolve the backend to use: explicit hint → env → fastest for graph.