39 std::vector<float> inputData;
40 for (
int ibatch = 0; ibatch <
m_batchSize; ibatch++){
43 inputData.insert(inputData.end(), flatten.begin(), flatten.end());
46 int64_t batchSize =
m_onnxTool->getBatchSize(inputData.size());
51 std::vector<Ort::Value> inputTensors;
55 std::vector<float> outputScores;
56 std::vector<Ort::Value> outputTensors;
64 for(
int ibatch = 0; ibatch <
m_batchSize; ibatch++){
67 for (
int i = 0; i < 10; i++){
68 ATH_MSG_DEBUG(
"Score for class "<< i <<
" = "<<outputScores[i] <<
" in batch " << ibatch);
69 int index = i + ibatch * 10;
75 ATH_MSG_INFO(
"Class: "<<max_index<<
" has the highest score: "<<outputScores[max_index] <<
" in batch " << ibatch);
78 return StatusCode::SUCCESS;