ONE - On-device Neural Engine
Loading...
Searching...
No Matches
OMUtils.h File Reference

Go to the source code of this file.

Namespaces

namespace  onert_micro
 
namespace  onert_micro::execute
 

Functions

void onert_micro::execute::readQuantParams (const circle::Tensor *tensor, long &zero_point, float &scale)
 
template<typename T >
OMStatus onert_micro::execute::calculateActivationRange (circle::ActivationFunctionType activation, T *activation_min, T *activation_max)
 
double onert_micro::execute::getQuantizedConvolutionMultipler (float input_scale, float filter_scale, float output_scale)
 
void onert_micro::execute::quantizeMultiplier (double double_multiplier, int32_t *quantized_multiplier, int *shift)
 
void onert_micro::execute::quantizeMultiplierSmallerThanOneExp (double double_multiplier, int32_t *quantized_multiplier, int *left_shift)
 
std::vector< double > onert_micro::execute::getQuantizedConvolutionMultiplers (float input_scale, const flatbuffers::Vector< float > *filter_scale, float output_scale)
 
OMStatus onert_micro::execute::calculateActivationRangeQuantized (circle::ActivationFunctionType activation, int32_t output_zero_point, float output_scale, circle::TensorType data_type, int32_t *activation_min, int32_t *activation_max)
 
int onert_micro::execute::computeOutSize (circle::Padding padding, int image_size, int filter_size, int stride, int dilation_rate=1)
 
int onert_micro::execute::computePadding (int32_t stride, int32_t dilation_rate, int32_t in_size, int32_t filter_size, int32_t out_size)
 
void onert_micro::execute::computePaddingHeightWidth (int32_t stride_height, int32_t stride_width, int32_t dilation_rate_height, int32_t dilation_rate_width, int32_t in_height, int32_t in_width, int32_t filter_height, int32_t filter_width, circle::Padding padding, int32_t *padding_h, int32_t *padding_w)
 
void onert_micro::execute::calculateQuantParams (core::ArithmeticQuantParams &params, const circle::Tensor *input1, const circle::Tensor *input2, const circle::Tensor *output, circle::ActivationFunctionType act)
 
OMStatus onert_micro::execute::SISOHeader (const OMExecuteArgs &execute_args, const circle::Tensor **input, const circle::Tensor **output, uint8_t **input_data, uint8_t **output_data)
 
OMStatus onert_micro::execute::TISOHeader (const OMExecuteArgs &execute_args, const circle::Tensor **input1, const circle::Tensor **input2, const circle::Tensor **output, OMRuntimeKernel *runtime_kernel)
 
int onert_micro::execute::calculateInputRadius (int input_integer_bits, int input_left_shift, int total_signed_bits)