ONE - On-device Neural Engine
|
#include <HDF5Importer.h>
Public Member Functions | |
HDF5Importer (const std::string &path) | |
void | importGroup (const std::string &group) |
void | readTensor (int32_t data_idx, int32_t input_idx, loco::DataType *dtype, std::vector< loco::Dimension > *shape, void *buffer, size_t buffer_bytes) const |
Read tensor data from file and store it into buffer. | |
void | readTensor (int32_t data_idx, int32_t input_idx, void *buffer, size_t buffer_bytes) const |
bool | isRawData () const |
int32_t | numData () const |
int32_t | numInputs (int32_t data_idx) const |
Definition at line 41 of file HDF5Importer.h.
|
explicit |
Definition at line 117 of file HDF5Importer.cpp.
|
inline |
Definition at line 51 of file HDF5Importer.h.
Referenced by mpqsolver::core::H5FileDataProvider::H5FileDataProvider(), record_minmax::HDF5Iterator::HDF5Iterator(), and dalgona::Dalgona::runAnalysisWithH5Input().
|
inline |
Definition at line 69 of file HDF5Importer.h.
Referenced by mpqsolver::core::H5FileDataProvider::H5FileDataProvider(), record_minmax::HDF5Iterator::HDF5Iterator(), and dalgona::Dalgona::runAnalysisWithH5Input().
|
inline |
Definition at line 71 of file HDF5Importer.h.
Referenced by record_minmax::HDF5Iterator::HDF5Iterator(), mpqsolver::core::H5FileDataProvider::numSamples(), and dalgona::Dalgona::runAnalysisWithH5Input().
int32_t dio::hdf5::HDF5Importer::numInputs | ( | int32_t | data_idx | ) | const |
Definition at line 125 of file HDF5Importer.cpp.
Referenced by record_minmax::HDF5Iterator::next(), mpqsolver::core::H5FileDataProvider::numInputs(), and dalgona::Dalgona::runAnalysisWithH5Input().
void dio::hdf5::HDF5Importer::readTensor | ( | int32_t | data_idx, |
int32_t | input_idx, | ||
loco::DataType * | dtype, | ||
std::vector< loco::Dimension > * | shape, | ||
void * | buffer, | ||
size_t | buffer_bytes | ||
) | const |
Read tensor data from file and store it into buffer.
A tensor in the file can be retrieved with (data_idx, input_idx)
data_idx | : index of the data |
input_idx | : index of the input |
dtype | : pointer to write the tensor's data type |
shape | : pointer to write the tensor's shape |
buffer | : pointer to write the tensor's data |
buffer_bytes | : byte size of the buffer |
Referenced by mpqsolver::core::H5FileDataProvider::getSampleInput(), record_minmax::HDF5Iterator::next(), and dalgona::Dalgona::runAnalysisWithH5Input().
void dio::hdf5::HDF5Importer::readTensor | ( | int32_t | data_idx, |
int32_t | input_idx, | ||
void * | buffer, | ||
size_t | buffer_bytes | ||
) | const |
Definition at line 131 of file HDF5Importer.cpp.