Skip to content

Qualcomm AI Engine Direct - Fix Per Layer Dump #6384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions backends/qualcomm/builders/node_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,11 @@ def get_tensor_type(

if is_parameter(node, self.edge_program):
return PyQnnWrapper.Qnn_TensorType_t.QNN_TENSOR_TYPE_STATIC

# dump all tensor, set to app read
if self.enable_tensor_dump:
# dump all tensor, set to app read, and we only dump native tensors
if (
self.enable_tensor_dump
and tensor_type == PyQnnWrapper.Qnn_TensorType_t.QNN_TENSOR_TYPE_NATIVE
):
return PyQnnWrapper.Qnn_TensorType_t.QNN_TENSOR_TYPE_APP_READ
return tensor_type

Expand Down
Loading