Skip to content

Commit

Permalink
Update QnnWrapperUtils.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: quic-zhanweiw <[email protected]>
  • Loading branch information
quic-zhanweiw authored Jun 25, 2024
1 parent 015ee4f commit 75564c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ qnn_wrapper_api::ModelError_t qnn_wrapper_api::freeQnnTensor(Qnn_Tensor_t &tenso
// free all pointer allocations in struct
free((void *)QNN_TENSOR_GET_NAME(tensor));
free(QNN_TENSOR_GET_DIMENSIONS(tensor));
if (QNN_TENSOR_GET_IS_DYNAMIC_DIMENSIONS(tensor)) {
free(QNN_TENSOR_GET_IS_DYNAMIC_DIMENSIONS(tensor));
}
return MODEL_NO_ERROR;
}

Expand Down

0 comments on commit 75564c3

Please sign in to comment.