| 313 | } |
| 314 | |
| 315 | void ggml_tallocr_free(ggml_tallocr_t alloc) { |
| 316 | if (alloc == NULL) { |
| 317 | return; |
| 318 | } |
| 319 | |
| 320 | if (alloc->buffer_owned) { |
| 321 | ggml_backend_buffer_free(alloc->buffer); |
| 322 | } |
| 323 | free(alloc); |
| 324 | } |
| 325 | |
| 326 | bool ggml_tallocr_is_measure(ggml_tallocr_t alloc) { |
| 327 | return alloc->measure; |
no test coverage detected