MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_tallocr_new_measure

Function ggml_tallocr_new_measure

ggml-alloc.c:263–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263ggml_tallocr_t ggml_tallocr_new_measure(size_t alignment) {
264 ggml_tallocr_t alloc = ggml_tallocr_new((void *)0x1000, SIZE_MAX/2, alignment);
265 alloc->measure = true;
266
267 return alloc;
268}
269
270ggml_tallocr_t ggml_tallocr_new_measure_from_backend(struct ggml_backend * backend) {
271 // create a backend buffer to get the correct tensor allocation sizes

Callers 1

ggml_allocr_new_measureFunction · 0.85

Calls 1

ggml_tallocr_newFunction · 0.70

Tested by

no test coverage detected