Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Jul 17, 2023
1 parent cd11954 commit aa22144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/mmdeploy/net/rknn/rknn_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Result<void> RKNNNet::Init(const Value& args) {
MMDEPLOY_ERROR("rknn query 'RKNN_QUERY_INPUT_ATTR' fail! ret: {}", ret);
return Status(eFail);
}
if (attr.type != RKNN_TENSOR_UINT8 || attr.type != RKNN_TENSOR_INT8) {
if (!(attr.type == RKNN_TENSOR_UINT8 || attr.type == RKNN_TENSOR_INT8)) {
MMDEPLOY_ERROR("MMDeploy SDK only supports RKNN-INT8 model");
return Status(eInvalidArgument);
}
Expand Down

0 comments on commit aa22144

Please sign in to comment.