Skip to content
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