diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-12-22 17:53:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 17:53:43 +0200 |
commit | ba661751322a7c201fd3bef71af077c5aebfaa2a (patch) | |
tree | af645f9d0eefb71ace31501540ab4263ecc6aaf8 /ggml-alloc.c | |
parent | a55876955b1a83464171de8d578d3ab062a7b62d (diff) |
sync : ggml (fix im2col) (#4591)
* cuda : fix im2col_f32_f16 (ggml/#658)
ggml-ci
* ggml-alloc : fix ggml_tallocr_is_own
---------
Co-authored-by: leejet <leejet714@gmail.com>
Diffstat (limited to 'ggml-alloc.c')
-rw-r--r-- | ggml-alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-alloc.c b/ggml-alloc.c index a97436b1..a27dd54b 100644 --- a/ggml-alloc.c +++ b/ggml-alloc.c @@ -72,7 +72,7 @@ static void remove_allocated_tensor(ggml_tallocr_t alloc, struct ggml_tensor * t // check if a tensor is allocated by this buffer static bool ggml_tallocr_is_own(ggml_tallocr_t alloc, const struct ggml_tensor * tensor) { - return tensor->buffer == alloc->buffer; + return tensor->buffer == alloc->buffer && (!tensor->view_src || tensor->view_src->buffer == alloc->buffer); } static bool ggml_is_view(struct ggml_tensor * t) { |