Browse Source

!8127 fix mindspore use const make standardization

Merge pull request !8127 from HuKang/kangMaster
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
32a7210e36
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      model_zoo/official/lite/Himindspore/app/src/main/cpp/ImageMindSporeNetnative.cpp
  2. +2
    -2
      model_zoo/official/lite/image_classification/app/src/main/cpp/MindSporeNetnative.cpp

+ 2
- 2
model_zoo/official/lite/Himindspore/app/src/main/cpp/ImageMindSporeNetnative.cpp View File

@@ -567,8 +567,8 @@ std::string ProcessRunnetResult(const int RET_CATEGORY_SUM, const char *const la
scores[i] = temp_scores[i];
}

float unifiedThre = 0.5;
float probMax = 1.0;
const float unifiedThre = 0.5;
const float probMax = 1.0;
for (size_t i = 0; i < RET_CATEGORY_SUM; ++i) {
float threshold = g_thres_map[i];
float tmpProb = scores[i];


+ 2
- 2
model_zoo/official/lite/image_classification/app/src/main/cpp/MindSporeNetnative.cpp View File

@@ -239,8 +239,8 @@ std::string ProcessRunnetResult(const int RET_CATEGORY_SUM, const char *const la
scores[i] = temp_scores[i];
}

float unifiedThre = 0.5;
float probMax = 1.0;
const float unifiedThre = 0.5;
const float probMax = 1.0;
for (size_t i = 0; i < RET_CATEGORY_SUM; ++i) {
float threshold = g_thres_map[i];
float tmpProb = scores[i];


Loading…
Cancel
Save