MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / ggml_context

Class ggml_context

tests/test_metal_win.cpp:27–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 size_t ctx_size = ggml_tensor_overhead() * 16 + ggml_graph_overhead();
26 struct ggml_init_params params = {ctx_size, nullptr, true};
27 struct ggml_context* ctx = ggml_init(params);
28
29 // Input tensor: [C, W, H, 1]
30 auto* inp = ggml_new_tensor_3d(ctx, GGML_TYPE_F32, C, W, H);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected