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

Function ggml_is_view

ggml-alloc.c:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78static bool ggml_is_view(struct ggml_tensor * t) {
79 return t->view_src != NULL;
80}
81
82void ggml_tallocr_alloc(ggml_tallocr_t alloc, struct ggml_tensor * tensor) {
83 GGML_ASSERT(!ggml_is_view(tensor)); // views generally get data pointer from one of their sources

Callers 3

ggml_tallocr_allocFunction · 0.70
allocate_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected