leon 5 달 전
부모
커밋
2e60de5b49
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/resnet.cu

+ 1 - 1
src/resnet.cu

@@ -417,7 +417,7 @@ class InferImpl : public Infer {
       arrout.emplace_back(max_score, index);
     }
     for (int ib = 0; ib < num_image; ++ib) {
-        std::cout << "score : " << arrout[ib].confidence << " label : " << arrout[ib].class_label << std::endl;
+        printf("score : %lf, label : %d\n", arrout[ib].confidence, arrout[ib].class_label);
     }
     return arrout;
   }