Browse Source

!15166 modify log format for 310 inference

From: @yuzhenhua666
Reviewed-by: @oacjiewen,@linqingke
Signed-off-by: @linqingke
pull/15166/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
abfe122a86
9 changed files with 9 additions and 9 deletions
  1. +1
    -1
      model_zoo/official/cv/deeptext/ascend310_infer/src/main.cc
  2. +1
    -1
      model_zoo/official/cv/faster_rcnn/ascend310_infer/src/main.cpp
  3. +1
    -1
      model_zoo/official/cv/maskrcnn/ascend310_infer/src/main.cpp
  4. +1
    -1
      model_zoo/official/cv/resnet/ascend310_infer/src/main.cc
  5. +1
    -1
      model_zoo/official/cv/ssd/ascend310_infer/src/main.cc
  6. +1
    -1
      model_zoo/official/cv/unet/ascend310_infer/src/main.cc
  7. +1
    -1
      model_zoo/official/cv/yolov4/ascend310_infer/src/main.cc
  8. +1
    -1
      model_zoo/official/recommend/naml/ascend310_infer/src/model_process.cpp
  9. +1
    -1
      model_zoo/official/recommend/naml/ascend310_infer/src/sample_process.cpp

+ 1
- 1
model_zoo/official/cv/deeptext/ascend310_infer/src/main.cc View File

@@ -143,7 +143,7 @@ int main(int argc, char **argv) {

average = average/infer_cnt;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << infer_cnt << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
std::string file_name = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream file_stream(file_name.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/cv/faster_rcnn/ascend310_infer/src/main.cpp View File

@@ -122,7 +122,7 @@ int main(int argc, char* argv[]) {
average = average / infer_cnt;

std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << infer_cnt << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;

std::string file_name = "./time_Result" + std::string("/test_perform_static.txt");


+ 1
- 1
model_zoo/official/cv/maskrcnn/ascend310_infer/src/main.cpp View File

@@ -119,7 +119,7 @@ int main(int argc, char* argv[]) {
}
average = average / infer_cnt;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << infer_cnt << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
std::string file_name = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream file_stream(file_name.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/cv/resnet/ascend310_infer/src/main.cc View File

@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
}
average = average / inferCount;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << inferCount << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << inferCount << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << inferCount << std::endl;
std::string fileName = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream fileStream(fileName.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/cv/ssd/ascend310_infer/src/main.cc View File

@@ -154,7 +154,7 @@ int main(int argc, char **argv) {
}
average = average / inferCount;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << inferCount << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << inferCount << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << inferCount << std::endl;
std::string fileName = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream fileStream(fileName.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/cv/unet/ascend310_infer/src/main.cc View File

@@ -138,7 +138,7 @@ int main(int argc, char **argv) {
}
average = average/infer_cnt;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << infer_cnt << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
std::string file_name = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream file_stream(file_name.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/cv/yolov4/ascend310_infer/src/main.cc View File

@@ -143,7 +143,7 @@ int main(int argc, char **argv) {
}
average = average/infer_cnt;
std::stringstream timeCost;
timeCost << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
timeCost << "NN inference cost average time: "<< average << " ms of infer_count " << infer_cnt << std::endl;
std::cout << "NN inference cost average time: "<< average << "ms of infer_count " << infer_cnt << std::endl;
std::string file_name = "./time_Result" + std::string("/test_perform_static.txt");
std::ofstream file_stream(file_name.c_str(), std::ios::trunc);


+ 1
- 1
model_zoo/official/recommend/naml/ascend310_infer/src/model_process.cpp View File

@@ -547,7 +547,7 @@ std::string ModelProcess::GetCostTimeInfo() {
average = average / infer_cnt;

std::stringstream timeCost;
timeCost << "first model latency "<< average << "ms; count " << infer_cnt << std::endl;
timeCost << "first model latency "<< average << " ms; count " << infer_cnt << std::endl;

return timeCost.str();
}

+ 1
- 1
model_zoo/official/recommend/naml/ascend310_infer/src/sample_process.cpp View File

@@ -347,7 +347,7 @@ std::vector<std::string> SampleProcess::GetModelExecCostTimeInfo() {
secondModelAverage = secondModelAverage / infer_cnt;
std::stringstream timeCost;
timeCost << "second model inference cost average time: "<< secondModelAverage <<
"ms of infer_count " << infer_cnt << std::endl;
" ms of infer_count " << infer_cnt << std::endl;
result.emplace_back(timeCost.str());

double totalCostTime;


Loading…
Cancel
Save