Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ggml/ggml.h
✓ #include <ggml/ggml.h>
Initialize ggml and create a 1D tensor
#include <ggml/ggml.h>
#include <stdio.h>
int main() {
struct ggml_init_params params = { .mem_size = 16*1024*1024, .mem_buffer = NULL };
struct ggml_context* ctx = ggml_init(params);
struct ggml_tensor* a = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 4);
ggml_set_f32(a, 0, 1.0f);
printf("Tensor created\n");
ggml_free(ctx);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.