5 #ifndef _HEBench_Harness_DatasetLoader_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_DatasetLoader_H_0596d40a3cce4b108a81595c50eb286d
10 #include <type_traits>
14 namespace DataLoader {
26 std::vector<std::vector<std::vector<T>>>
inputs;
34 std::vector<std::vector<std::vector<T>>>
outputs;
39 typename = std::enable_if_t<std::is_same_v<T, std::int32_t> || std::is_same_v<T, std::int64_t> || std::is_same_v<T, float> || std::is_same_v<T, double>>>
63 std::uint64_t max_loaded_size = 0);
static ExternalDataset< T > loadFromCSV(const std::string &filename, std::uint64_t max_loaded_size=0)
Loads a dataset from an external csv file that follows the defined structure.
std::vector< std::vector< std::vector< T > > > inputs
Contains the samples for each input parameter as loaded from external source.
std::vector< std::vector< std::vector< T > > > outputs
Contains the samples for each result component as loaded from external source.