pub fn resolve_device( graph: &Graph, hint: Option<Device>, policy: &DevicePolicy, ) -> Result<Device, String>
Resolve the backend to use: explicit hint → env → fastest for graph.
graph