Hi Ruben,
From the output log file, I observed that it is different from your code where certain printout is missing.
I do not observed the print out below.
// Flip Vertically
flipHorizontally(processed_output);
std::cout << "Flipped Output Array:" << std::endl;
for (const auto& row : processed_output) {
std::cout << "[ ";
for (const auto& value : row) {
std::cout << value << " ";
}
std::cout << "]" << std::endl;
}
// Group the data into 9 slaves
std::vector<std::vector<int>> grouped_output = groupData(processed_output);
std::cout << "\nGrouped Output Array:" << std::endl;
for (size_t i = 0; i < grouped_output.size(); ++i) {
std::cout << "Group " << i + 1 << ": [ ";
for (const auto& value : grouped_output[i]) {
std::cout << value << " ";
}
std::cout << "]" << std::endl;
}
std::cout << "RIS Resolution: " << output_shape[3] << "-bit." << std::endl;
std::vector<int> flattened_output;
for (const auto& group : grouped_output) {
flattened_output.insert(flattened_output.end(), group.begin(), group.end());
}
// std::vector<uint64_t> groups = prepareData(flattened_output, output_shape[3]);
std::vector<uint64_t> groups = prepareData(grouped_output, output_shape[3]);
std::cout << "Prepared Data for SPI:" << std::endl;
for (size_t i = 0; i < groups.size(); ++i) {
std::cout << "Group " << i << ": 0x"
<< std::hex << groups[i]
<< std::dec << std::endl;
}
const std::string throughput_file_name = "throughput_report.txt";
std::ofstream throughput_file;
throughput_file.open(throughput_file_name);
throughput_file << "Throughput : " << totalFps << " fps" << std::endl;
throughput_file << "Batch Size : " << batchSize << std::endl;
throughput_file << "Graph number : " << exeNetworks.size() << std::endl;
throughput_file << "Num Batches : " << num_batches << std::endl;
throughput_file.close();
// Output Debug Network Info if COREDLA_TEST_DEBUG_NETWORK is set
ReadDebugNetworkInfo(ie);
if (return_code) return return_code;
Thanks.
John Tio