#include <hebench_logreg.h>
|
static constexpr std::size_t | Index_W = 0 |
|
static constexpr std::size_t | Index_b = 1 |
|
static constexpr std::size_t | Index_X = 2 |
|
|
void | computeResult (std::vector< hebench::APIBridge::NativeDataBuffer * > &result, const std::uint64_t *param_data_pack_indices, hebench::APIBridge::DataType data_type) override |
| Computes result of the operation on the input data given the of the input sample. More...
|
|
| DataLoaderCompute () |
|
| 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 51 of file hebench_logreg.h.
◆ Ptr
◆ PolynomialDegree
◆ ~DataLoader()
hebench::TestHarness::LogisticRegression::DataLoader::~DataLoader |
( |
| ) |
|
|
inlineoverride |
◆ computeResult()
Computes result of the operation on the input data given the of the input sample.
- Parameters
-
| result | Vector where to store the result. Vector comes pre-initialized. This method's task is to fill up the data buffers with the result values. |
[in] | param_data_pack_indices | For each operation parameter, this array indicates the sample index to use for the operation. Must contain, at least, getParameterCount() elements. |
[in] | data_type | Data type of the data pointed by the inputs and result. |
Implements hebench::TestHarness::DataLoaderCompute.
Definition at line 434 of file hebench_logreg.cpp.
◆ create() [1/2]
◆ create() [2/2]
◆ Index_b
constexpr std::size_t hebench::TestHarness::LogisticRegression::DataLoader::Index_b = 1 |
|
staticconstexpr |
◆ Index_W
constexpr std::size_t hebench::TestHarness::LogisticRegression::DataLoader::Index_W = 0 |
|
staticconstexpr |
◆ Index_X
constexpr std::size_t hebench::TestHarness::LogisticRegression::DataLoader::Index_X = 2 |
|
staticconstexpr |
The documentation for this class was generated from the following files: