| 361 | snapshot.available = true; |
| 362 | snapshot.total_bytes = static_cast<int64_t>(total_bytes); |
| 363 | snapshot.free_bytes = static_cast<int64_t>(free_bytes); |
| 364 | snapshot.used_bytes = static_cast<int64_t>(total_bytes - free_bytes); |
| 365 | } |
| 366 | } |
| 367 | return snapshot; |
| 368 | } |
| 369 | |
| 370 | ggml_backend_graph_plan_t create_backend_graph_plan_if_host(ggml_backend_t backend, ggml_cgraph * graph) { |
| 371 | if (backend == nullptr || graph == nullptr || !is_host_backend(backend)) { |
no test coverage detected