ONE - On-device Neural Engine
|
#include <MinMaxReader.h>
Public Member Functions | |
MinMaxReader (const std::string &filepath) | |
MinMaxVectors | readOP (uint32_t model_idx, uint32_t subg_idx, uint32_t op_idx) const |
Returns minmax recording for op {model_idx, subg_idx, op_idx}. | |
MinMaxVectors | readInput (uint32_t model_idx, uint32_t subg_idx, uint32_t input_idx) const |
Returns minmax recording for input {model_idx, subg_idx, input_idx}. | |
uint32_t | readNumRuns () const |
Returns minmax recording count. | |
Definition at line 58 of file MinMaxReader.h.
onert::odc::MinMaxReader::MinMaxReader | ( | const std::string & | filepath | ) |
Definition at line 80 of file MinMaxReader.cc.
MinMaxVectors onert::odc::MinMaxReader::readInput | ( | uint32_t | model_idx, |
uint32_t | subg_idx, | ||
uint32_t | input_idx | ||
) | const |
Returns minmax recording for input {model_idx, subg_idx, input_idx}.
Definition at line 162 of file MinMaxReader.cc.
References onert::odc::MinMaxVectors::max_vector, and onert::odc::MinMaxVectors::min_vector.
uint32_t onert::odc::MinMaxReader::readNumRuns | ( | ) | const |
Returns minmax recording count.
Definition at line 239 of file MinMaxReader.cc.
Referenced by onert::odc::Quantizer::readyForQuantize().
MinMaxVectors onert::odc::MinMaxReader::readOP | ( | uint32_t | model_idx, |
uint32_t | subg_idx, | ||
uint32_t | op_idx | ||
) | const |
Returns minmax recording for op {model_idx, subg_idx, op_idx}.
Definition at line 86 of file MinMaxReader.cc.
References onert::odc::MinMaxVectors::max_vector, and onert::odc::MinMaxVectors::min_vector.