Skip to content

Commit

Permalink
more log for view tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
chraac committed Dec 3, 2024
1 parent 348fd05 commit 3f5e2ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ggml/src/ggml-qnn/backend-ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,11 @@ bool ggml_qnn_supports_tensor(ggml_backend_qnn_device_context *ctx, const ggml_t
}

if (tensor->view_src) {
QNN_LOG_DEBUG("[%s]tensor(%s) is a view", qnn::get_backend_name(ctx->device), ggml_type_name(tensor->type));
auto *src_tensor = tensor->view_src;
QNN_LOG_DEBUG("[%s]tensor(%s_%dx%dx%dx%d) is a view, src: %s_%dx%dx%dx%d", qnn::get_backend_name(ctx->device),
ggml_get_name(tensor), tensor->ne[0], tensor->ne[1], tensor->ne[2], tensor->ne[3],
ggml_get_name(src_tensor), src_tensor->ne[0], src_tensor->ne[1], src_tensor->ne[2],
src_tensor->ne[3]);
return false;
}

Expand Down

0 comments on commit 3f5e2ad

Please sign in to comment.