#include <datagen_helper.h>
|
| DataLoaderCompute () |
|
virtual void | computeResult (std::vector< hebench::APIBridge::NativeDataBuffer * > &result, const std::uint64_t *param_data_pack_indices, hebench::APIBridge::DataType data_type)=0 |
| Computes result of the operation on the input data given the of the input sample. More...
|
|
| PartialDataLoader () |
|
void | init (hebench::APIBridge::DataType data_type, std::size_t input_dim, const std::size_t *input_sample_count_per_dim, const std::uint64_t *input_count_per_dim, std::size_t output_dim, const std::uint64_t *output_count_per_dim, bool allocate_output) |
| Initializes dimensions of inputs and outputs. No allocation is performed. More...
|
|
void | init (const std::string &filename, hebench::APIBridge::DataType data_type, std::size_t expected_input_dim, const std::size_t *max_input_sample_count_per_dim, const std::uint64_t *expected_input_count_per_dim, std::size_t expected_output_dim, const std::uint64_t *expected_output_count_per_dim) |
| Loads a dataset from a file. More...
|
|
std::vector< std::shared_ptr< hebench::APIBridge::DataPack > > | getResultTempDataPacks (std::uint64_t result_index) const |
| Retrieves a pre-allocated result providing memory space to store a single operation result sample. More...
|
|
std::vector< std::shared_ptr< hebench::APIBridge::DataPack > > | getResultTempDataPacks (const std::uint64_t *param_data_pack_indices) const |
| Retrieves a pre-allocated result providing memory space to store a single operation result sample. More...
|
|
std::vector< std::shared_ptr< hebench::APIBridge::DataPack > > | getResultTempDataPacks () const |
| Retrieves a pre-allocated result providing memory space to store a single operation result sample. More...
|
|
| IDataLoader () |
|
Definition at line 22 of file datagen_helper.h.
◆ ~DataLoaderCompute()
hebench::TestHarness::DataLoaderCompute::~DataLoaderCompute |
( |
| ) |
|
|
inlineoverride |
◆ DataLoaderCompute()
hebench::TestHarness::DataLoaderCompute::DataLoaderCompute |
( |
| ) |
|
|
inlineprotected |
◆ computeResult()
◆ getResultFor()
getResultFor
- Parameters
-
[in] | param_data_pack_indices | Collection of indices for data sample to use inside each parameter pack. Number of elements pointed must be, at least, getParameterCount() . |
- Returns
- Returns a non-null pointer ResultData containing the ground-truth result corresponding to the specified parameter indices.
- Exceptions
-
std::out_of_range | if any index is out of range. |
std::invalid_argument | if param_data_pack_indices is null. |
instance | of std::exception on any other error. |
The shape of result is always 2D: [n = getResultCount(), ?], so, the result for an operation is
(result[0][r_i], result[1][r_i], ..., result[n-1][r_i])
where r_i is the index of the NativeDataBuffer
s for the result in the second dimension.
- See also
- getResultIndex()
Implements hebench::TestHarness::IDataLoader.
Definition at line 23 of file datagen_helper.cpp.
The documentation for this class was generated from the following files: