MCPcopy Create free account
hub / github.com/evilsocket/cake / get_inference_device_force_cpu

Function get_inference_device_force_cpu

cake-core/src/utils/mod.rs:468–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467 #[test]
468 fn get_inference_device_force_cpu() {
469 let dev = get_inference_device(true, 0).unwrap();
470 assert!(dev.is_cpu(), "force_cpu=true should return CPU");
471 }
472
473 #[test]
474 fn get_inference_device_force_cpu_any_ordinal() {

Callers

nothing calls this directly

Calls 1

get_inference_deviceFunction · 0.85

Tested by

no test coverage detected