Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-virtgpu/backend/backend-convert.h # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-virtgpu / backend / backend-convert.h` 13 lines ยท 543 bytes Raw Blame History 1 #include "shared/apir_backend.h" 2 3 #define BUFFER_TO_HOST_HANDLE(name) ggml_buffer_to_apir_handle(name) 4 5 static inline apir_buffer_host_handle_t ggml_buffer_to_apir_handle(ggml_backend_buffer_t buffer) { 6 // in the backend, the buffer handle is the buffer pointer 7 return (apir_buffer_host_handle_t) buffer; 8 } 9 10 static inline apir_buffer_type_host_handle_t ggml_buffer_type_to_apir_handle(ggml_backend_buffer_type_t buft) { 11 // in the backend, the buffer handle is the buffer pointer 12 return (apir_buffer_type_host_handle_t) buft; 13 }