Skip to content

Commit 7f03a40

Browse files
hexagon: remove unused logic for setting tensor flags for the views
1 parent 4a7a909 commit 7f03a40

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ggml/src/ggml-hexagon/ggml-hexagon.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ static enum ggml_status ggml_backend_hexagon_buffer_init_tensor(ggml_backend_buf
405405
(int) ctx->repack);
406406

407407
if (tensor->view_src != NULL && tensor->view_offs == 0) {
408-
// Just a view, reuse the same extra info
409-
tensor->flags = tensor->view_src->flags;
410-
tensor->extra = tensor->view_src->extra;
408+
; // nothing to do for the view
411409
} else {
412410
if (!ctx->mapped) {
413411
ctx->mmap();

0 commit comments

Comments
 (0)