frohzinn's picture
download
raw
543 Bytes
#include "shared/apir_backend.h"
#define BUFFER_TO_HOST_HANDLE(name) ggml_buffer_to_apir_handle(name)
static inline apir_buffer_host_handle_t ggml_buffer_to_apir_handle(ggml_backend_buffer_t buffer) {
// in the backend, the buffer handle is the buffer pointer
return (apir_buffer_host_handle_t) buffer;
}
static inline apir_buffer_type_host_handle_t ggml_buffer_type_to_apir_handle(ggml_backend_buffer_type_t buft) {
// in the backend, the buffer handle is the buffer pointer
return (apir_buffer_type_host_handle_t) buft;
}

Xet Storage Details

Size:
543 Bytes
·
Xet hash:
2928e004096c22e04ba21bf34e97924f461d108846484b02343591017f60d1ab

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.