Skip to content

Commit

Permalink
cpp oop skill issues
Browse files Browse the repository at this point in the history
  • Loading branch information
james20902 committed Jan 31, 2024
1 parent 954dc1b commit 2db8b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/native/cpp/yolo_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ int YoloModel::changeCoreMask(int coreNumber) {
throw std::runtime_error("invalid core selection! core selected: " + coreNumber);
break;
}
ret = rknn_set_core_mask(ctx, core_mask);
int ret = rknn_set_core_mask(ctx, core_mask);
if (ret < 0)
{
throw std::runtime_error("rknn_init core error ret=" + ret);
Expand Down
2 changes: 1 addition & 1 deletion src/main/native/include/yolo_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class YoloModel {
public:
YoloModel(std::string modelPath, int num_classes_, ModelVersion type_, int coreNumber);

int YoloModel::changeCoreMask(int coreNumber);
int changeCoreMask(int coreNumber);

detect_result_group_t forward(cv::Mat &orig_img, DetectionFilterParams params);

Expand Down

0 comments on commit 2db8b1b

Please sign in to comment.