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