Add prediction.hpp

This commit is contained in:
2026-06-05 13:45:50 +00:00
commit 56137a58d7

23
prediction.hpp Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <chrono>
#include <string>
#include <vector>
namespace engine
{
struct ClassScore
{
std::string label;
float probability;
int class_index;
};
struct Prediction
{
std::vector< ClassScore > scores;
std::chrono::microseconds total_time{};
};
} // namespace engine