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

Function ggml_tallocr_is_own

ggml-alloc.c:74–76  ·  view source on GitHub ↗

check if a tensor is allocated by this buffer

Source from the content-addressed store, hash-verified

72
73// check if a tensor is allocated by this buffer
74static bool ggml_tallocr_is_own(ggml_tallocr_t alloc, const struct ggml_tensor * tensor) {
75 return tensor->buffer == alloc->buffer;
76}
77
78static bool ggml_is_view(struct ggml_tensor * t) {
79 return t->view_src != NULL;

Callers 2

ggml_tallocr_free_tensorFunction · 0.85
allocate_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected