hexagon: enable non-contiguous row tensor support for unary ops (#22574)

This commit is contained in:
Aparna M P
2026-05-01 10:09:23 -07:00
committed by GitHub
parent ab6120cde5
commit 2098fd6169
3 changed files with 85 additions and 33 deletions
+2 -2
View File
@@ -2421,8 +2421,8 @@ static bool ggml_hexagon_supported_unary(const struct ggml_hexagon_session * ses
return false;
}
// TODO: add support for non-contigiuos tensors
if (!ggml_is_contiguous(src0) || !ggml_is_contiguous(dst)) {
// TODO: add support for non-contiguous elements within a row
if (!ggml_is_contiguous_rows(src0) || !ggml_is_contiguous_rows(dst)) {
return false;
}