Skip to content

Commit

Permalink
added support for all possible core masks
Browse files Browse the repository at this point in the history
  • Loading branch information
james20902 committed Jan 29, 2024
1 parent 10e5403 commit ecc58ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/native/cpp/yolo_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ YoloModel::YoloModel(std::string modelPath, int num_classes_, ModelVersion type_
case 2:
core_mask = RKNN_NPU_CORE_2;
break;
case 10:
core_mask = RKNN_NPU_CORE_0_1;
break;
case 210:
core_mask = RKNN_NPU_CORE_0_1_2;
break;
default:
core_mask = RKNN_NPU_CORE_AUTO;
break;
Expand Down

0 comments on commit ecc58ce

Please sign in to comment.