MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_gallocr_is_allocated

Function ggml_gallocr_is_allocated

external/ggml/src/ggml-alloc.c:592–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592static bool ggml_gallocr_is_allocated(ggml_gallocr_t galloc, struct ggml_tensor * t) {
593 return t->data != NULL // tensor data already set externally
594 || t->buffer // tensor on external buffer (but not yet allocated)
595 || ggml_gallocr_is_own(galloc, t); // tensor will be allocated by galloc
596}
597
598// free the extra space at the end if the new tensor is smaller
599static void ggml_gallocr_free_extra_space(ggml_gallocr_t galloc, struct ggml_tensor * node, struct ggml_tensor * parent) {

Callers 1

Calls 1

ggml_gallocr_is_ownFunction · 0.85

Tested by

no test coverage detected