diff --git a/backends/qualcomm/builders/node_visitor.py b/backends/qualcomm/builders/node_visitor.py index 514bc6efd78..95b147aba51 100644 --- a/backends/qualcomm/builders/node_visitor.py +++ b/backends/qualcomm/builders/node_visitor.py @@ -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